From 19a10833262113f754bed24495625cfb6af1f385 Mon Sep 17 00:00:00 2001 From: Tony Tomov Date: Mon, 15 Feb 2010 10:23:34 +0200 Subject: [PATCH] Fix a array splice in columnChooser for IE browsers. IE totally omit the some specifications. --- js/grid.jqueryui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/grid.jqueryui.js b/js/grid.jqueryui.js index a55cec18c..96cf5282f 100755 --- a/js/grid.jqueryui.js +++ b/js/grid.jqueryui.js @@ -216,7 +216,7 @@ $.jgrid.extend({ function insert(perm,i,v) { if(i>=0){ var a = perm.slice(); - var b = a.splice(i); + var b = a.splice(i,Math.max(perm.length-i,i)); if(i>perm.length) i = perm.length; a[i] = v; return a.concat(b);