Permalink
Browse files

MINOR Only use cookie storage in TabSet.js if the element has a uniqu…

…e ID to correlate the cookie to
  • Loading branch information...
1 parent ef514b9 commit 7e347217a64fcaa450ffbf41555c9d107fe8a496 @chillu chillu committed Jan 7, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 javascript/TabSet.js
View
@@ -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
+ });
},
/**

0 comments on commit 7e34721

Please sign in to comment.