summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-10-25 13:24:50 +0400
committerAndrew Dolgov <[email protected]>2012-10-25 13:24:50 +0400
commitfa2cde396e0fd27e1eae07604001434d82be69af (patch)
tree2f18d3ac911f449175999ff4d89b9cfd8ca19ade /js
parentc0c2abbaa73363a1349e41ec08cd54a0d1e8ad8e (diff)
disable update button on nonupdateable feeds
Diffstat (limited to 'js')
-rw-r--r--js/viewfeed.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/viewfeed.js b/js/viewfeed.js
index cb0a75960..a9d585545 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;