r1770 - trunk/ui
r1770 - trunk/ui
Author: klaus.hartl
Date: Fri Jan 23 12:11:02 2009
New Revision: 1770
Modified:
trunk/ui/ui.tabs.js
Log:
Tabs: added ability to define the cookie name, fixes #2393
Modified: trunk/ui/ui.tabs.js
==============================================================================
--- trunk/ui/ui.tabs.js (original)
+++ trunk/ui/ui.tabs.js Fri Jan 23 12:11:02 2009
@@ -83,7 +83,7 @@
},
_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)));
},