Skip to content
Permalink
Browse files

Tabs: Fixed id generation for cookies.

Fixes #5264 - cookie name is: "ui-tabs-[object Object]".
  • Loading branch information...
scottgonzalez committed Mar 4, 2010
1 parent b636ad6 commit 0de9895595e6c30567f5907706d73f49a6149350
Showing with 3 additions and 2 deletions.
  1. +3 −2 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)));
},

0 comments on commit 0de9895

Please sign in to comment.
You can’t perform that action at this time.