From 8db33cc65ef3a5a2097c77aaaf85c0292d5a9742 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 21 Nov 2009 02:37:10 +0000 Subject: [PATCH] BUGFIX Fixed ui.tabs saving into cookies in LeftAndMain.js and CMSMain.js git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92620 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- javascript/CMSMain.js | 3 --- javascript/LeftAndMain.js | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/javascript/CMSMain.js b/javascript/CMSMain.js index a55740a3..769e822d 100644 --- a/javascript/CMSMain.js +++ b/javascript/CMSMain.js @@ -20,9 +20,6 @@ }); this._resizeChildren(); - - // save cookie state of all tabs - $('.ss-tabset').tabs('option', 'cookie', { expires: 30 }); this._super(); }, diff --git a/javascript/LeftAndMain.js b/javascript/LeftAndMain.js index fd8b3e04..3e267de0 100644 --- a/javascript/LeftAndMain.js +++ b/javascript/LeftAndMain.js @@ -220,7 +220,8 @@ // All tab contents are closed by default. this.tabs({ collapsible: true, - selected: null + selected: parseInt(jQuery.cookie('ui-tabs-TreeActions')) || null, + cookie: { expires: 30, path: '/', name: 'ui-tabs-TreeActions' } }); } }});