From: Andrew Dolgov Date: Thu, 25 Oct 2012 09:24:50 +0000 (+0400) Subject: disable update button on nonupdateable feeds X-Git-Tag: 1.6.1~64 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=fa2cde396e0fd27e1eae07604001434d82be69af;p=tt-rss.git disable update button on nonupdateable feeds --- diff --git a/js/viewfeed.js b/js/viewfeed.js index cb0a7596..a9d58554 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -53,6 +53,10 @@ function headlines_callback2(transport, offset, background, infscroll_req) { setActiveFeedId(feed_id, is_cat); + dijit.getEnclosingWidget( + document.forms["main_toolbar_form"].update).attr('disabled', + is_cat || feed_id <= 0); + try { if (offset == 0 && infscroll_req == false) { $("headlines-frame").scrollTop = 0;