mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Fixed tab selection state
This commit is contained in:
parent
0eac6ea5c3
commit
5a93ee77f8
@ -810,7 +810,7 @@ jQuery.noConflict();
|
|||||||
this.rewriteHashlinks();
|
this.rewriteHashlinks();
|
||||||
|
|
||||||
var id = this.attr('id'), cookieId = 'ui-tabs-' + id,
|
var id = this.attr('id'), cookieId = 'ui-tabs-' + id,
|
||||||
selectedTab = this.find('ul:first .ui-state-selected');
|
selectedTab = this.find('ul:first .ui-tabs-selected');
|
||||||
|
|
||||||
// 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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user