Zurb Foundation 4 shut modal stuck

I have a modal popup containing a View Details button that opens another modal popup. I use $('#modalName').foundation('reveal', 'close') everywhere and it works very well. But in this case, I believe that there is a problem with the event, because the modal closes, but the control never returns to the window.

Stuck view

This is the modal that I want to close:

Popup view

Notice the red frame around the Finish button and the X (close) button. I want the same code to be executed no matter how the user closes the popup.

CSHTML

 @*The Modal View for Displaying Meter Tag Details*@ <div id="meterTagDetailsModal" class="reveal-modal medium"> <div class="row modalTitleRow"> <div class="small-12 columns"> <h3> Meter Tags Details </h3> </div> </div> <br /> <div class="row meterRow"> <div class="small-12 columns"> <table id="meterTagDetailsTable" class="meterTable"> <thead> <tr> <th>Meter Name</th> <th>Commodity</th> <th>Building Name</th> <th>Site</th> </tr> </thead> <tbody></tbody> </table> </div> <a id="closeModal" class="close-reveal-modal">&#215;</a> </div> <div class="row meterRow"> <div class="small-12 columns text-right"> <a class="button tiny" onclick="$('#closeModal').click()">Done</a> </div> </div> </div> 

Javascript

Binding Event

 $('#meterTagDetailsModal').on("closed", onCloseMeterTagDetails); 

Method

 onCloseMeterTagDetails = function () { $('#meterTagDetailsModal').foundation('reveal', 'close'); $('#meterTagDetailsModal').trigger('reveal: close'); } 

Execution gets this method when the popup closes. But his gaze was stuck in limbo. I tried both readings.

Does anyone know how I can get a view to close and return control to a window?

0
javascript zurb-foundation
source share

No one has answered this question yet.

See similar questions:

32
How to use Zurb Foundation with open, open, closed, closed callback functions?
8
Unpublished modal using Zurb Foundation
2
Zurb Foundation 4 Shows Modal: Doesn't Close
one
Making sure the opening modality is closed in Zurb Foundation 4

or similar:

3796
How do you get the timestamp in JavaScript?
2853
Get current url using javascript?
2701
How to get query string values ​​in JavaScript?
2170
How to get children from the $ (this) selector?
2132
Get selected text from drop-down list (select field) using jQuery
2102
How to get current date in JavaScript?
1904
Get screen size, current web page and browser window
1690
Get current url using jQuery?
1270
Why do not self-closing script elements work?
0
Magical events of magic, Zorm Foundation Reveal Modals

All Articles