From 80c6786807d9d136938f4dd06ff3e976f4f2533e Mon Sep 17 00:00:00 2001 From: alecpl Date: Fri, 19 Sep 2008 07:36:50 +0000 Subject: - make setting/reading splitter's cookie simpler (we need only position number in it) --- skins/default/splitter.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/skins/default/splitter.js b/skins/default/splitter.js index 4391ae9fe..ef4da037b 100644 --- a/skins/default/splitter.js +++ b/skins/default/splitter.js @@ -49,16 +49,9 @@ function rcube_splitter(attrib) // read saved position from cookie var cookie = bw.get_cookie(this.id); - if (cookie) + if (cookie && !isNaN(cookie)) { - var param = cookie.split(':'); - - for (var i=0, p; i