Skip to content

Commit

Permalink
BUGFIX Fixed ui.tabs saving into cookies in LeftAndMain.js and CMSMai…
Browse files Browse the repository at this point in the history
…n.js

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92620 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information
chillu committed Nov 21, 2009
1 parent 0935da6 commit 8db33cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions javascript/CMSMain.js
Expand Up @@ -20,9 +20,6 @@
});

this._resizeChildren();

// save cookie state of all tabs
$('.ss-tabset').tabs('option', 'cookie', { expires: 30 });

this._super();
},
Expand Down
3 changes: 2 additions & 1 deletion javascript/LeftAndMain.js
Expand Up @@ -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' }
});
}
}});
Expand Down

0 comments on commit 8db33cc

Please sign in to comment.