diff options
author | Andrew Dolgov <[email protected]> | 2010-11-20 11:52:11 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-11-20 11:54:57 +0300 |
commit | 1a709d21d57bd8bc905c02caa62379f547214e64 (patch) | |
tree | 634589b0c499f3f14d0098b834699dee35fcd215 /tt-rss.js | |
parent | 692de15991a7be43afd515e3b9fde3d0a713de3d (diff) |
enable server-side storage of collapsed status of categories
Diffstat (limited to 'tt-rss.js')
-rw-r--r-- | tt-rss.js | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -92,7 +92,7 @@ function updateFeedList() { new Ajax.Request("backend.php", { parameters: "backend.php?op=feeds&subop=collapse&cid=" + - param_escape(cat_id) + "&mode=1" } ); + param_escape(cat_id) + "&mode=0" } ); }, onClose: function (item, node) { var id = String(item.id); @@ -100,7 +100,7 @@ function updateFeedList() { new Ajax.Request("backend.php", { parameters: "backend.php?op=feeds&subop=collapse&cid=" + - param_escape(cat_id) + "&mode=0" } ); + param_escape(cat_id) + "&mode=1" } ); }, onClick: function (item, node) { @@ -133,6 +133,9 @@ function updateFeedList() { var tmph = dojo.connect(tree, 'onLoad', function() { dojo.disconnect(tmph); Element.hide("feedlistLoading"); + + tree.collapseHiddenCats(); + feedlist_init(); // var node = dijit.byId("feedTree")._itemNodesMap['FEED:-2'][0].domNode |