mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-02-04 23:04:56 -05:00
Tabs: added ability to define the cookie name, fixes #2393
This commit is contained in:
@@ -83,7 +83,7 @@ $.widget("ui.tabs", {
|
||||
},
|
||||
|
||||
_cookie: function() {
|
||||
var cookie = this.cookie || (this.cookie = 'ui-tabs-' + $.data(this.list[0]));
|
||||
var cookie = this.cookie || (this.cookie = this.options.cookie.name || 'ui-tabs-' + $.data(this.list[0]));
|
||||
return $.cookie.apply(null, [cookie].concat($.makeArray(arguments)));
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user