]> git.wh0rd.org - tt-rss.git/commitdiff
disable update button on nonupdateable feeds (fix for cached headlines)
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 25 Oct 2012 09:27:44 +0000 (13:27 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 25 Oct 2012 09:27:44 +0000 (13:27 +0400)
js/viewfeed.js

index a9d585545d7a14cedc1c027aee230092a589d447..5f7fbee6d9606828a46f2861bf59ba16df03ca7c 100644 (file)
@@ -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) {