You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the user closes the modal using escape key, clicking outside the modal, or clicking the X, I like to popup another modal to ask them if they are sure. Similar to a confirm javascript api. The problem is that there is no way to prevent a closing using the beforeClose callback. That is, I cannot send back a false from the beforeClose callback to prevent the closing of the modal. What is the best method for doing this?
sgs.
The text was updated successfully, but these errors were encountered:
$.nmFilters({
custom: {
close: function(nm) {
if (!nm._confirmClosed) {
if (confirm('Are you sure you want to close it?')) {
nm._confirmClosed = true;
nm.close();
}
return false;
}
}
}
});
When the user closes the modal using escape key, clicking outside the modal, or clicking the X, I like to popup another modal to ask them if they are sure. Similar to a confirm javascript api. The problem is that there is no way to prevent a closing using the beforeClose callback. That is, I cannot send back a false from the beforeClose callback to prevent the closing of the modal. What is the best method for doing this?
sgs.
The text was updated successfully, but these errors were encountered: