Permalink
Browse files

ENHANCEMENT Storing tabs in LeftAndMain in cookie

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92616 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 7f0e529 commit 761760eeedb12f2bb4335715fec4da90f61385fa @chillu chillu committed Nov 21, 2009
Showing with 4 additions and 0 deletions.
  1. +1 −0 code/LeftAndMain.php
  2. +3 −0 javascript/CMSMain.js
View
@@ -202,6 +202,7 @@ function init() {
Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/behaviour/behaviour.js');
Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/jquery-livequery/jquery.livequery.js');
+ Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/jquery-cookie/jquery.cookie.js');
Requirements::javascript(SAPPHIRE_DIR . '/javascript/core/jquery.ondemand.js');
Requirements::javascript(SAPPHIRE_DIR . '/javascript/prototype_improvements.js');
Requirements::javascript(THIRDPARTY_DIR . '/loader.js');
View
@@ -20,6 +20,9 @@
});
this._resizeChildren();
+
+ // save cookie state of all tabs
+ $('.ss-tabset').tabs('option', 'cookie', { expires: 30 });
this._super();
},

0 comments on commit 761760e

Please sign in to comment.