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

remove server-side feedtree collapse implementation

This commit is contained in:
Andrew Dolgov
2013-02-27 15:34:13 +04:00
parent 65713fdf4c
commit 88918ca637
5 changed files with 7 additions and 93 deletions

View File

@@ -69,25 +69,7 @@ function updateFeedList() {
});
var tree = new fox.FeedTree({
persist: false,
model: treeModel,
onOpen: function (item, node) {
var id = String(item.id);
var cat_id = id.substr(id.indexOf(":")+1);
new Ajax.Request("backend.php",
{ parameters: "backend.php?op=feeds&method=collapse&cid=" +
param_escape(cat_id) + "&mode=0" } );
},
onClose: function (item, node) {
var id = String(item.id);
var cat_id = id.substr(id.indexOf(":")+1);
new Ajax.Request("backend.php",
{ parameters: "backend.php?op=feeds&method=collapse&cid=" +
param_escape(cat_id) + "&mode=1" } );
},
onClick: function (item, node) {
var id = String(item.id);
var is_cat = id.match("^CAT:");
@@ -119,8 +101,6 @@ function updateFeedList() {
dojo.disconnect(tmph);
Element.hide("feedlistLoading");
tree.collapseHiddenCats();
feedlist_init();
// var node = dijit.byId("feedTree")._itemNodesMap['FEED:-2'][0].domNode