Permalink
Browse files

beforeShowSearch not triggered

  • Loading branch information...
1 parent ba50eac commit 99bcf6e98b8a114483bd2c874aa0a72919158098 @slbug committed Jan 31, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 js/grid.formedit.js
View
@@ -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

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

Owner

slbug replied Feb 1, 2012

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

Please sign in to comment.