I am using simple modal window to show dynamic content(table) on modal window popup. The close event is working fine when I am simply showing data in modal window.
But if I am showing another jquery dialog popup on simple modal window after closing jquery popup dialog, My simple modal window popup onClose event is not working.
// Base Modal popup
$('#simple').modal({
onShow: function() {
alert("activated");
},
onClose: function() {
alert("deactivated");
$.modal.close();
}
});
// Jquery popup
$('#kick').dialog({
//ajax calls to show data
});
close event is not working second time even when I am using $.modal.close();
Please... please help me... I had already spent one day in this...
// I get rid of this
$("#basic-modal-content").modal( {
onShow : function() {
// anything you want to do before
},
onClose : function() {
// when closing popup anything you wanna do
var a = this;
a.close();
}
});