summaryrefslogtreecommitdiff
path: root/js/PrefFeedTree.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-13 23:08:20 +0300
committerAndrew Dolgov <[email protected]>2021-02-13 23:08:20 +0300
commit43d8a1f2fffc3dd551ce80dc506dad79a65ca052 (patch)
tree7d8462835ed54e4a2e65abaf5eac5308147a66cf /js/PrefFeedTree.js
parent103d30ad3f92ed03156fee400801d9a38f946b34 (diff)
remove getinactivefeeds (duplicate functionality)
Diffstat (limited to 'js/PrefFeedTree.js')
-rw-r--r--js/PrefFeedTree.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/PrefFeedTree.js b/js/PrefFeedTree.js
index c3dda4187..e17b8744d 100644
--- a/js/PrefFeedTree.js
+++ b/js/PrefFeedTree.js
@@ -210,8 +210,8 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dojo/_b
return false;
},
checkInactiveFeeds: function() {
- xhrPost("backend.php", {op: "pref-feeds", method: "getinactivefeeds"}, (transport) => {
- if (parseInt(transport.responseText) > 0) {
+ xhrJson("backend.php", {op: "pref-feeds", method: "inactivefeeds"}, (reply) => {
+ if (reply.length > 0) {
Element.show(dijit.byId("pref_feeds_inactive_btn").domNode);
}
});