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