From 7e347217a64fcaa450ffbf41555c9d107fe8a496 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 7 Jan 2012 18:57:40 +0100 Subject: [PATCH] MINOR Only use cookie storage in TabSet.js if the element has a unique ID to correlate the cookie to --- javascript/TabSet.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/javascript/TabSet.js b/javascript/TabSet.js index 0b2bb5bcb..504684fc2 100644 --- a/javascript/TabSet.js +++ b/javascript/TabSet.js @@ -18,9 +18,10 @@ this.rewriteHashlinks(); // Initialize jQuery UI tabs + var id = this.attr('id'); 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 + }); }, /**