{"issue":{"created_at":"2011-11-21T14:24:35Z","state":"closed","updated_at":"2011-11-21T20:06:00Z","comments":1,"user":{"gravatar_id":"c767678d9ae4043d1874f76c3f8a565c","id":414336,"url":"https://api.github.com/users/guettli","login":"guettli","avatar_url":"https://secure.gravatar.com/avatar/c767678d9ae4043d1874f76c3f8a565c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Hi,\r\n\r\nhere is a small patch to add options the the cookie persistance:\r\n\r\n```\r\nmodwork_esg_d@workdevel114:~$ diff -u media/jquery-treetable/javascripts/jquery.treeTable.js-orig media/jquery-treetable/javascripts/jquery.treeTable.js\r\n--- media/jquery-treetable/javascripts/jquery.treeTable.js-orig\t2011-11-21 15:14:04.916003117 +0100\r\n+++ media/jquery-treetable/javascripts/jquery.treeTable.js\t2011-11-21 14:50:38.013003191 +0100\r\n@@ -53,7 +53,8 @@\r\n     onNodeHide: null,\r\n     treeColumn: 0,\r\n     persist: false,\r\n-    persistCookiePrefix: 'treeTable_'\r\n+    persistCookiePrefix: 'treeTable_',\r\n+    persistCookieOptions: {}\r\n   };\r\n \r\n   // Recursively hide all node's children in a tree\r\n@@ -150,7 +151,7 @@\r\n     if (options.persist) {\r\n       // Store cookie if this node is expanded, otherwise delete cookie.\r\n       var cookieName = options.persistCookiePrefix + $(this).attr('id');\r\n-      $.cookie(cookieName, $(this).hasClass('expanded') ? 'true' : null);\r\n+      $.cookie(cookieName, $(this).hasClass('expanded') ? 'true' : null, options.persistCookieOptions);\r\n     }\r\n \r\n     return this;\r\n\r\n```","assignee":null,"id":2305038,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":31,"labels":[],"title":"Options for cookie persistance","closed_at":"2011-11-21T20:06:00Z","html_url":"https://github.com/ludo/jquery-treetable/issues/31","url":"https://api.github.com/repos/ludo/jquery-treetable/issues/31","milestone":null},"action":"closed"}