summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-20 11:52:11 +0300
committerAndrew Dolgov <[email protected]>2010-11-20 11:54:57 +0300
commit1a709d21d57bd8bc905c02caa62379f547214e64 (patch)
tree634589b0c499f3f14d0098b834699dee35fcd215 /tt-rss.js
parent692de15991a7be43afd515e3b9fde3d0a713de3d (diff)
enable server-side storage of collapsed status of categories
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/tt-rss.js b/tt-rss.js
index a4082bd8b..aa23ea075 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -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