1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-14 13:05:56 +00:00

enable server-side storage of collapsed status of categories

This commit is contained in:
Andrew Dolgov
2010-11-20 11:52:11 +03:00
parent 692de15991
commit 1a709d21d5
2 changed files with 23 additions and 2 deletions

View File

@@ -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