mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Only use cookie storage in TabSet.js if the element has a unique ID to correlate the cookie to
This commit is contained in:
parent
ef514b924e
commit
7e347217a6
@ -18,9 +18,10 @@
|
|||||||
this.rewriteHashlinks();
|
this.rewriteHashlinks();
|
||||||
|
|
||||||
// Initialize jQuery UI tabs
|
// Initialize jQuery UI tabs
|
||||||
|
var id = this.attr('id');
|
||||||
this.tabs({
|
this.tabs({
|
||||||
cookie: $.cookie ? { expires: 30, path: '/', name: 'ui-tabs-' + this.attr('id') } : false
|
cookie: ($.cookie && id) ? { expires: 30, path: '/', name: 'ui-tabs-' + id } : false
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user