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
This commit is contained in:
Ingo Schommer 2009-11-21 02:36:59 +00:00
parent 7f0e5299c0
commit 761760eeed
2 changed files with 4 additions and 0 deletions

View File

@ -202,6 +202,7 @@ class LeftAndMain extends Controller {
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 File

@ -20,6 +20,9 @@
});
this._resizeChildren();
// save cookie state of all tabs
$('.ss-tabset').tabs('option', 'cookie', { expires: 30 });
this._super();
},