diff --git a/feedlist.js b/feedlist.js index 860122bd0..b4e7b60ef 100644 --- a/feedlist.js +++ b/feedlist.js @@ -157,7 +157,7 @@ function viewfeed(feed, subop, is_cat, subop_param, skip_history, offset) { } enableHotkeys(); - + hideAuxDlg(); closeInfoBox(); Form.enable("main_toolbar_form"); @@ -329,20 +329,22 @@ function viewfeed(feed, subop, is_cat, subop_param, skip_history, offset) { if (!is_cat && img) { - img.alt = img.src; - img.src = 'images/indicator_white.gif'; + if (!img.src.match("indicator_white")) { + img.alt = img.src; + img.src = 'images/indicator_white.gif'; + } } else { - var ll = document.createElement('img'); + if (!$('FLL-' + feed)) { + var ll = document.createElement('img'); - ll.src = 'images/indicator_tiny.gif'; - ll.className = 'hlLoading'; - ll.id = 'FLL-' + feed; + ll.src = 'images/indicator_tiny.gif'; + ll.className = 'hlLoading'; + ll.id = 'FLL-' + feed; - feedr.appendChild(ll); - - + feedr.appendChild(ll); + } } } } diff --git a/functions.js b/functions.js index 6ab23b0f2..fcfddaa52 100644 --- a/functions.js +++ b/functions.js @@ -532,7 +532,7 @@ function parse_counters(reply, scheduled_call) { if (feedctr && feedu && feedr) { if (feedu.innerHTML != ctr && id == getActiveFeedId() && scheduled_call) { - viewCurrentFeed(); + displayNewContentPrompt(id); } var row_needs_hl = (ctr > 0 && ctr > parseInt(feedu.innerHTML)); @@ -2052,12 +2052,16 @@ function updateFeedBrowser() { query = query + "&search=" + param_escape(search.value); } - notify_progress("Loading, please wait...", true); + //notify_progress("Loading, please wait...", true); + + Element.show('feed_browser_spinner'); new Ajax.Request(query, { onComplete: function(transport) { notify(''); + Element.hide('feed_browser_spinner'); + var c = $("browseFeedList"); var r = transport.responseXML.getElementsByTagName("content")[0]; var nr = transport.responseXML.getElementsByTagName("num-results")[0]; @@ -2190,4 +2194,25 @@ function hotkey_prefix_timeout() { } } +function hideAuxDlg() { + try { + Element.hide('auxDlg'); + } catch (e) { + exception_error("hideAuxDlg", e); + } +} +function displayNewContentPrompt(id) { + try { + var msg = __("New articles in «%s». Click to view."); + + msg = msg.replace("%s", getFeedName(id)); + + $('auxDlg').innerHTML = msg; + + Element.show('auxDlg'); + + } catch (e) { + exception_error("displayNewContentPrompt", e); + } +} diff --git a/images/fresh_sign.png b/images/fresh_sign.png index 9f3d96a34..6ec38eeb6 100755 Binary files a/images/fresh_sign.png and b/images/fresh_sign.png differ diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index 6b510bc9d..17379a2bf 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -70,6 +70,8 @@ print "