1 parent adce13c commit d42cd1fCopy full SHA for d42cd1f
1 file changed
js/jquery.nyroModal.js
@@ -237,16 +237,20 @@ jQuery(function($, undefined) {
237
// Internal function for closing a nyroModal
238
// Will call 'close' callback filter
239
_close: function() {
240
+ var ret = true;
241
if (!this._animated) {
242
this.getInternal()._removeStack(this.opener);
243
this._opened = false;
244
this._open = false;
- this._callFilters('close');
245
- return true;
+ $.each(this._callFilters('close'), function(k, v) {
246
+ if (v === false)
247
+ ret = false;
248
+ });
249
} else {
250
this._needClose = true;
251
252
}
- return false;
253
+ return ret;
254
},
255
// Public function for closing a nyroModal
256
close: function() {
0 commit comments