summaryrefslogtreecommitdiff
path: root/js/PrefFeedTree.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-02 12:03:28 +0300
committerAndrew Dolgov <[email protected]>2018-12-02 12:03:28 +0300
commitf26d404890a55a34ed5779b6f36e949d38705e8d (patch)
tree8578175725bce862828739b80f9ac18de767b7ce /js/PrefFeedTree.js
parent60cd4676943169a057518634e3060745e9112511 (diff)
prefs: move other tree-related functions to respective trees
Diffstat (limited to 'js/PrefFeedTree.js')
-rw-r--r--js/PrefFeedTree.js7
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();