aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.tabs.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-03-04 02:36:43 +0000
committerScott González <scott.gonzalez@gmail.com>2010-03-04 02:36:43 +0000
commit0de9895595e6c30567f5907706d73f49a6149350 (patch)
treec68f95bcfbbbb170a8b4022a9832f2f406481388 /ui/jquery.ui.tabs.js
parentb636ad6997941ab6a1891fb90454096285adc1e1 (diff)
downloadjquery-ui-0de9895595e6c30567f5907706d73f49a6149350.tar.gz
jquery-ui-0de9895595e6c30567f5907706d73f49a6149350.zip
Tabs: Fixed id generation for cookies.
Fixes #5264 - cookie name is: "ui-tabs-[object Object]".
Diffstat (limited to 'ui/jquery.ui.tabs.js')
-rw-r--r--ui/jquery.ui.tabs.js5
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)));
},