1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-20 22:01:29 +00:00

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

View File

@@ -53,6 +53,10 @@ function headlines_callback2(transport, offset, background, infscroll_req) {
setActiveFeedId(feed_id, is_cat); setActiveFeedId(feed_id, is_cat);
dijit.getEnclosingWidget(
document.forms["main_toolbar_form"].update).attr('disabled',
is_cat || feed_id <= 0);
try { try {
if (offset == 0 && infscroll_req == false) { if (offset == 0 && infscroll_req == false) {
$("headlines-frame").scrollTop = 0; $("headlines-frame").scrollTop = 0;