mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Avoid reinitialising tabs (see #7258)
This commit is contained in:
parent
fa900f70d5
commit
5260738148
@ -803,7 +803,7 @@ jQuery.noConflict();
|
|||||||
|
|
||||||
// Fix for wrong cookie storage of deselected tabs
|
// Fix for wrong cookie storage of deselected tabs
|
||||||
if($.cookie && id && $.cookie(cookieId) == -1) $.cookie(cookieId, 0);
|
if($.cookie && id && $.cookie(cookieId) == -1) $.cookie(cookieId, 0);
|
||||||
this.tabs({
|
if(!this.data('tabs')) this.tabs({
|
||||||
cookie: ($.cookie && id) ? { expires: 30, path: '/', name: cookieId } : false,
|
cookie: ($.cookie && id) ? { expires: 30, path: '/', name: cookieId } : false,
|
||||||
ajaxOptions: {
|
ajaxOptions: {
|
||||||
// Overwrite ajax loading to use CMS logic instead
|
// Overwrite ajax loading to use CMS logic instead
|
||||||
|
Loading…
x
Reference in New Issue
Block a user