diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.tabs.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js index 6644f35b0..8b6d72329 100644 --- a/ui/jquery.ui.tabs.js +++ b/ui/jquery.ui.tabs.js @@ -13,7 +13,8 @@ */ (function($) { -var tabId = 0; +var tabId = 0, + listId = 0; $.widget("ui.tabs", { options: { @@ -63,7 +64,7 @@ $.widget("ui.tabs", { }, _cookie: function() { - var cookie = this.cookie || (this.cookie = this.options.cookie.name || 'ui-tabs-' + $.data(this.list[0])); + var cookie = this.cookie || (this.cookie = this.options.cookie.name || 'ui-tabs-' + (++listId)); return $.cookie.apply(null, [cookie].concat($.makeArray(arguments))); }, |