disable update button on nonupdateable feeds (fix for cached headlines)

This commit is contained in:
Andrew Dolgov 2012-10-25 13:27:44 +04:00
parent fa2cde396e
commit f4c0d2a693
1 changed files with 4 additions and 0 deletions

View File

@ -2100,6 +2100,10 @@ function render_local_headlines(feed, is_cat, obj) {
setActiveFeedId(feed, is_cat); setActiveFeedId(feed, is_cat);
initHeadlinesMenu(); initHeadlinesMenu();
dijit.getEnclosingWidget(
document.forms["main_toolbar_form"].update).attr('disabled',
is_cat || feed <= 0);
precache_headlines(); precache_headlines();
} catch (e) { } catch (e) {