From: Andrew Dolgov Date: Thu, 25 Oct 2012 09:27:44 +0000 (+0400) Subject: disable update button on nonupdateable feeds (fix for cached headlines) X-Git-Tag: 1.6.1~63 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f4c0d2a6938a6b58cbebcf0cb55637c7e5cf84ff;p=tt-rss.git disable update button on nonupdateable feeds (fix for cached headlines) --- diff --git a/js/viewfeed.js b/js/viewfeed.js index a9d58554..5f7fbee6 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -2100,6 +2100,10 @@ function render_local_headlines(feed, is_cat, obj) { setActiveFeedId(feed, is_cat); initHeadlinesMenu(); + dijit.getEnclosingWidget( + document.forms["main_toolbar_form"].update).attr('disabled', + is_cat || feed <= 0); + precache_headlines(); } catch (e) {