From f4c0d2a6938a6b58cbebcf0cb55637c7e5cf84ff Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 25 Oct 2012 13:27:44 +0400 Subject: [PATCH] disable update button on nonupdateable feeds (fix for cached headlines) --- js/viewfeed.js | 4 ++++ 1 file changed, 4 insertions(+) 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) { -- 2.39.5