]> source.dussan.org Git - jquery-ui.git/commitdiff
Tabs: added ability to define the cookie name, fixes #2393
authorKlaus Hartl <klaus.hartl@googlemail.com>
Fri, 23 Jan 2009 20:11:02 +0000 (20:11 +0000)
committerKlaus Hartl <klaus.hartl@googlemail.com>
Fri, 23 Jan 2009 20:11:02 +0000 (20:11 +0000)
ui/ui.tabs.js

index 86ca68a378127d1e9d4cb9c6879a8312c2237ca4..dd283721ee02813fe2fd2e45b08a691f1cddd690 100644 (file)
@@ -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)));
        },