From f9c1f8b0d4e83d2984bcc0d60a0a0b3635459807 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 12 Aug 2015 16:19:42 +0300 Subject: pref-feeds: check for inactive feeds asynchronously --- js/prefs.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'js/prefs.js') diff --git a/js/prefs.js b/js/prefs.js index 67a4a378c..159b9ecbc 100644 --- a/js/prefs.js +++ b/js/prefs.js @@ -24,6 +24,20 @@ function updateFeedList(sort_key) { } }); } +function checkInactiveFeeds() { + try { + new Ajax.Request("backend.php", { + parameters: "?op=pref-feeds&method=getinactivefeeds", + onComplete: function(transport) { + if (parseInt(transport.responseText) > 0) { + Element.show(dijit.byId("pref_feeds_inactive_btn").domNode); + } + } }); + + } catch (e) { + exception_error("checkInactiveFeeds", e); + } +} function updateUsersList(sort_key) { try { -- cgit v1.2.3