Permalink
Browse files

Add trigger event for every callFilter. Fix #246

1 parent 18403ea commit b7ae3accf7634cc79a24dc3c6024cbb1f614b462 @nyroDev committed Oct 17, 2014
Showing with 5 additions and 0 deletions.
  1. +5 −0 js/jquery.nyroModal.js
@@ -423,6 +423,11 @@ jQuery(function($, undefined) {
// return an array of all return of callbacks; keys are filters name
_callFilters: function(fct, prm) {
this.getInternal()._debug(fct, prm);
+ if (this.opener && this.opener.length) {
+ this.opener.trigger(fct+'.nyroModal', [this, prm]);
+ } else {
+ $b.trigger(fct+'.nyroModal', [this, prm]);
+ }
var ret = [],
self = this;
$.each(this.filters, function(i, f) {

2 comments on commit b7ae3ac

@xiehongyang

哇,下载试试

@wlclass

谢谢

Please sign in to comment.