We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20e2484 commit 5bf17f1Copy full SHA for 5bf17f1
simpleDialog.js
@@ -86,9 +86,11 @@ $.simpleDialog = function (options) {
86
event.preventDefault();
87
if (typeof options.onSuccess === 'function' && options.onSuccess) {
88
var data = options.onSuccess();
89
- if (data) {
90
- $('#simple-dialog-modal-' + currentID).modal('hide');
91
- }
+ setTimeout(function () {
+ if (data || data === undefined) {
+ $('#simple-dialog-modal-' + currentID).modal('hide');
92
+ }
93
+ }, 0);
94
} else {
95
$('#simple-dialog-modal-' + currentID).modal('hide');
96
}
0 commit comments