Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

beforeShowSearch not triggered

  • Loading branch information...
commit 99bcf6e98b8a114483bd2c874aa0a72919158098 1 parent ba50eac
@slbug authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 js/grid.formedit.js
View
10 js/grid.formedit.js
@@ -77,14 +77,14 @@ $.jgrid.extend({
if(typeof(showFrm) === "undefined") {
showFrm = true;
}
- if(showFrm && $.isFunction(p.beforeShowSearch)) {
- showFrm = p.beforeShowSearch.call($t,_filter);
+ if(showFrm && $.isFunction($t.p.beforeShowSearch)) {
+ showFrm = $t.p.beforeShowSearch.call($t,_filter);
}
if(showFrm) {
- $.jgrid.viewModal("#"+IDs.themodal,{gbox:"#gbox_"+fid,jqm:p.jqModal, modal:p.modal, overlay: p.overlay, toTop: p.toTop});
+ $.jgrid.viewModal("#"+IDs.themodal,{gbox:"#gbox_"+fid,jqm:$t.p.jqModal, modal:$t.p.modal, overlay: $t.p.overlay, toTop: $t.p.toTop});
$($t).triggerHandler("jqGridFilterAfterShow", [_filter]);
- if($.isFunction(p.afterShowSearch)) {
- p.afterShowSearch.call($t, _filter);
+ if($.isFunction($t.p.afterShowSearch)) {
+ $t.p.afterShowSearch.call($t, _filter);
}
}
}

2 comments on commit 99bcf6e

@tonytomov

Hello,
beforeShowSearch and afterShowSearch are not direct grid parameters $t.p, but search module one only p
The same for the modal params. What about these if we use a edit and add dialog?

Regards

@slbug
Owner

hmm, what does it mean? should i add callback new sopt defined?

Please sign in to comment.
Something went wrong with that request. Please try again.