Skip to content

Commit b7ae3ac

Browse files
committed
Add trigger event for every callFilter. Fix #246
1 parent 18403ea commit b7ae3ac

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

js/jquery.nyroModal.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,11 @@ jQuery(function($, undefined) {
423423
// return an array of all return of callbacks; keys are filters name
424424
_callFilters: function(fct, prm) {
425425
this.getInternal()._debug(fct, prm);
426+
if (this.opener && this.opener.length) {
427+
this.opener.trigger(fct+'.nyroModal', [this, prm]);
428+
} else {
429+
$b.trigger(fct+'.nyroModal', [this, prm]);
430+
}
426431
var ret = [],
427432
self = this;
428433
$.each(this.filters, function(i, f) {

0 commit comments

Comments
 (0)