From b7665618dbf7680524cb6323345e08ff5bf436f5 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 7 Oct 2009 14:44:51 +0400 Subject: [PATCH] properly display loading indicators in category titles --- feedlist.js | 8 +++++++- viewfeed.js | 4 +++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/feedlist.js b/feedlist.js index 37c80001..3a5274a1 100644 --- a/feedlist.js +++ b/feedlist.js @@ -315,7 +315,13 @@ function viewfeed(feed, subop, is_cat, subop_param, skip_history, offset) { } else { if (!page_offset) { - var feedr = $('FEEDR-' + feed); + var feedr; + + if (is_cat) { + feedr = $('FCAP-' + feed); + } else { + feedr = $('FEEDR-' + feed); + } if (feedr) { var ll = document.createElement('img'); diff --git a/viewfeed.js b/viewfeed.js index 7a614f78..2655774d 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -119,7 +119,9 @@ function headlines_callback2(transport, feed_cur_page) { if (feedr && !feedr.className.match("Selected")) { feedr.className = feedr.className + "Selected"; } - if (feedr && ll) feedr.removeChild(ll); + + var fcap = $("FCAP-" + feed_id); + if (fcap && ll) fcap.removeChild(ll); } -- 2.39.5