1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-14 02:35:55 +00:00

prefs: move other tree-related functions to respective trees

This commit is contained in:
Andrew Dolgov
2018-12-02 12:03:28 +03:00
parent 60cd467694
commit f26d404890
9 changed files with 252 additions and 290 deletions

View File

@@ -147,6 +147,13 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], functio
return false;
},
checkInactiveFeeds: function() {
xhrPost("backend.php", {op: "pref-feeds", method: "getinactivefeeds"}, (transport) => {
if (parseInt(transport.responseText) > 0) {
Element.show(dijit.byId("pref_feeds_inactive_btn").domNode);
}
});
},
getSelectedCategories: function() {
const tree = this;
const items = tree.model.getCheckedItems();