From 36ae4008fbf4d4d47d7993c28d523c5f356e4f20 Mon Sep 17 00:00:00 2001 From: Tony Tomov Date: Sat, 14 Jan 2012 01:01:17 +0200 Subject: [PATCH] Fix undefined value in clearTooolbar --- js/grid.custom.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/grid.custom.js b/js/grid.custom.js index 1a9a87077..8ab8ab322 100644 --- a/js/grid.custom.js +++ b/js/grid.custom.js @@ -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) {