diff options
author | Andrew Dolgov <[email protected]> | 2012-10-25 13:27:44 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-10-25 13:27:44 +0400 |
commit | f4c0d2a6938a6b58cbebcf0cb55637c7e5cf84ff (patch) | |
tree | eb4efb6a136dfdff03e249185870e1880bc0a739 /js/viewfeed.js | |
parent | fa2cde396e0fd27e1eae07604001434d82be69af (diff) |
disable update button on nonupdateable feeds (fix for cached headlines)
Diffstat (limited to 'js/viewfeed.js')
-rw-r--r-- | js/viewfeed.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/viewfeed.js b/js/viewfeed.js index a9d585545..5f7fbee6d 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) { |