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

index cb0a759603c15a393f2bb502d45df408e94f87ff..a9d585545d7a14cedc1c027aee230092a589d447 100644 (file)
@@ -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;