diff options
author | Andrew Dolgov <[email protected]> | 2021-02-13 23:12:49 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-13 23:12:49 +0300 |
commit | d4c925819b9d85a00520e413a90cfbcd61a1c667 (patch) | |
tree | ef1163aee0d81d43cb91307a0b0bc5491f019257 /js/PrefFeedTree.js | |
parent | 43d8a1f2fffc3dd551ce80dc506dad79a65ca052 (diff) |
pref-feeds: load error button via xhr
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 e17b8744d..e0a2dd932 100644 --- a/js/PrefFeedTree.js +++ b/js/PrefFeedTree.js @@ -209,6 +209,13 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dojo/_b return false; }, + checkErrorFeeds: function() { + xhrJson("backend.php", {op: "pref-feeds", method: "feedsWithErrors"}, (reply) => { + if (reply.length > 0) { + Element.show(dijit.byId("pref_feeds_errors_btn").domNode); + } + }); + }, checkInactiveFeeds: function() { xhrJson("backend.php", {op: "pref-feeds", method: "inactivefeeds"}, (reply) => { if (reply.length > 0) { |