Skip to content

Commit

Permalink
Fix undefined value in clearTooolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
tonytomov committed Jan 13, 2012
1 parent ddc719d commit 36ae400
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/grid.custom.js
Expand Up @@ -193,9 +193,10 @@ $.jgrid.extend({
if($.isFunction(p.afterSearch)){p.afterSearch();}
};
var clearToolbar = function(trigger){
var sdata={}, v, j=0, nm;
var sdata={}, j=0, nm;
trigger = (typeof trigger != 'boolean') ? true : trigger;
$.each($t.p.colModel,function(i,n){
var v;
if(this.searchoptions && this.searchoptions.defaultValue !== undefined) { v = this.searchoptions.defaultValue; }
nm = this.index || this.name;
switch (this.stype) {
Expand Down

0 comments on commit 36ae400

Please sign in to comment.