diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index da89b5d8..f646867e 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -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'); diff --git a/javascript/CMSMain.js b/javascript/CMSMain.js index 88f250de..881dcc95 100644 --- a/javascript/CMSMain.js +++ b/javascript/CMSMain.js @@ -20,6 +20,9 @@ }); this._resizeChildren(); + + // save cookie state of all tabs + $('.ss-tabset').tabs('option', 'cookie', { expires: 30 }); this._super(); },