diff options
author | Andrew Dolgov <[email protected]> | 2018-12-02 12:03:28 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-12-02 12:03:28 +0300 |
commit | f26d404890a55a34ed5779b6f36e949d38705e8d (patch) | |
tree | 8578175725bce862828739b80f9ac18de767b7ce /js/PrefFeedTree.js | |
parent | 60cd4676943169a057518634e3060745e9112511 (diff) |
prefs: move other tree-related functions to respective trees
Diffstat (limited to 'js/PrefFeedTree.js')
-rw-r--r-- | js/PrefFeedTree.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/js/PrefFeedTree.js b/js/PrefFeedTree.js index 1f1c58f2f..a23624c08 100644 --- a/js/PrefFeedTree.js +++ b/js/PrefFeedTree.js @@ -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(); |