Side navigation
Ticket #3101: treeview_cookie_settings_patch.txt
File treeview_cookie_settings_patch.txt, 0.5 KB (added by jcruz, June 30, 2008 12:11AM UTC)
Patch to jquery.treeview.js
Index: jquery.treeview.js
===================================================================
--- jquery.treeview.js (revision 18)
+++ jquery.treeview.js (working copy)
@@ -169,7 +169,7 @@
branches.each(function(i, e) {
data[i] = $(e).is(":has(>ul:visible)") ? 1 : 0;
});
- $.cookie(settings.cookieId, data.join("") );
+ $.cookie(settings.cookieId, data.join(""), {expires: settings.cookieExpires, path: settings.cookiePath, domain: settings.cookieDomain, secure: settings.cookieSecure} );
}
function deserialize() {
Download in other formats:
Original Format
File treeview_cookie_settings_patch.txt, 0.5 KB (added by jcruz, June 30, 2008 12:11AM UTC)
Patch to jquery.treeview.js
Index: jquery.treeview.js
===================================================================
--- jquery.treeview.js (revision 18)
+++ jquery.treeview.js (working copy)
@@ -169,7 +169,7 @@
branches.each(function(i, e) {
data[i] = $(e).is(":has(>ul:visible)") ? 1 : 0;
});
- $.cookie(settings.cookieId, data.join("") );
+ $.cookie(settings.cookieId, data.join(""), {expires: settings.cookieExpires, path: settings.cookiePath, domain: settings.cookieDomain, secure: settings.cookieSecure} );
}
function deserialize() {