disable update button on nonupdateable feeds

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

View 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;