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 22a8363 commit 20e2484Copy full SHA for 20e2484
simpleDialog.js
@@ -84,12 +84,15 @@ $.simpleDialog = function (options) {
84
*/
85
$(document).on('click', "#confirm-btn", function (event) {
86
event.preventDefault();
87
- $('#simple-dialog-modal-' + currentID).modal('hide');
88
- if (typeof options.onSuccess === 'function' && options.onSuccess()) {
89
- options.onSuccess();
+ if (typeof options.onSuccess === 'function' && options.onSuccess) {
+ var data = options.onSuccess();
+ if (data) {
90
+ $('#simple-dialog-modal-' + currentID).modal('hide');
91
+ }
92
+ } else {
93
94
}
95
});
-
96
/**
97
* Handling close button events
98
0 commit comments