} else {
if (!page_offset) {
- notify_progress("Loading, please wait...", true);
+ var feedr = $('FEEDR-' + feed);
+
+ if (feedr) {
+ var ll = document.createElement('img');
+
+ ll.src = 'images/indicator_tiny.gif';
+ ll.className = 'hlLoading';
+ ll.id = 'FLL-' + feed;
+
+ feedr.appendChild(ll);
+ }
}
new Ajax.Request(query, {
# truncate_string($line["feed_title"],30)."</a> </td>";
# } else {
- print "<td onclick='view($id,$feed_id)' class='hlContent$hlc_suffix' valign='middle'>";
+ print "<td onclick='view($id,$feed_id)' class='hlContent$hlc_suffix' valign='middle' id='HLC-$id'>";
print "<a id=\"RTITLE-$id\"
href=\"" . htmlspecialchars($line["link"]) . "\"
- onclick=\"return view($id,$feed_id);\">" .
+ onclick=\"return false\">" .
$line["title"];
if (get_pref($link, 'SHOW_CONTENT_PREVIEW')) {
</span>";
}
}
+
+// print "<img id='HLL-$id' class='hlLoading'
+// src='images/indicator_tiny.gif' style='display : none'>";
+
print "</td>";
# }
}
}
+ var ll = $('FLL-' + feed_id);
+
if (!is_cat) {
var feedr = $("FEEDR-" + feed_id);
if (feedr && !feedr.className.match("Selected")) {
feedr.className = feedr.className + "Selected";
}
+ if (feedr && ll) feedr.removeChild(ll);
} else {
var feedr = $("FCAT-" + feed_id);
if (feedr && !feedr.className.match("Selected")) {
feedr.className = feedr.className + "Selected";
}
+ if (feedr && ll) feedr.removeChild(ll);
+
}
-
+
var f = $("headlines-frame");
try {
if (feed_cur_page == 0) {
if (!transport_error_check(transport)) return;
+ var ll = $('LL-' + id);
+ var content = $('HLC-' + id);
+
+ if (ll && content) content.removeChild(ll);
+
+ if (id != last_requested_article) {
+ debug("requested article id is out of sequence, aborting");
+ return;
+ }
+
+ active_real_feed_id = feed_id;
+ active_post_id = id;
+
debug("looking for articles to cache...");
var articles = transport.responseXML.getElementsByTagName("article");
cache_inject(a_id, articles[i].firstChild.nodeValue);
}
- if (id != last_requested_article) {
- debug("requested article id is out of sequence, aborting");
- return;
- }
-
- active_real_feed_id = feed_id;
- active_post_id = id;
showArticleInHeadlines(id);
if (!cached_article) {
- notify_progress("Loading, please wait...", true);
+// notify_progress("Loading, please wait...", true);
+
+ var content = $('HLC-' + id);
+
+ if (content && !$('LL-' + id)) {
+ var ll = document.createElement('img');
+
+ ll.src = 'images/indicator_tiny.gif';
+ ll.className = 'hlLoading';
+ ll.id = 'LL-' + id;
+
+ content.appendChild(ll);
+
+ }
} else if (cached_article && article_is_unread) {