From: Andrew Dolgov Date: Mon, 22 Aug 2005 12:44:50 +0000 (+0100) Subject: changed updated.png X-Git-Tag: 20050823-1~18 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a234aee5735c5b407925ab6495813c81403cabc1;p=tt-rss.git changed updated.png --- diff --git a/backend.php b/backend.php index c7b66929..996e7dfa 100644 --- a/backend.php +++ b/backend.php @@ -261,7 +261,7 @@ href=\"javascript:viewfeed($feed, $skip, '');\">Refresh Page"; print " "; print "Update"; + href=\"javascript:viewfeed($feed, 0, 'ForceUpdate');\">Update Feed"; print "  Mark as read: "; diff --git a/tt-rss.js b/tt-rss.js index 7417fbb8..c78a4287 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -26,6 +26,10 @@ if (!xmlhttp && typeof XMLHttpRequest!='undefined') { xmlhttp = new XMLHttpRequest(); } +function printLockingError() { + notify("Please wait until operation finishes"); +} + function notify_callback() { var container = document.getElementById('notify'); if (xmlhttp.readyState == 4) { @@ -105,14 +109,14 @@ function updateFeedList(called_from_timer, fetch) { xmlhttp.onreadystatechange=feedlist_callback; xmlhttp.send(null); } else { - notify("Please wait until operation finishes."); + printLockingError(); } } function catchupPage(feed) { if (xmlhttp.readyState != 4 && xmlhttp.readyState != 0) { - notify("Please wait until operation finishes."); + printLockingError(); return } @@ -153,7 +157,7 @@ function catchupPage(feed) { function catchupAllFeeds() { if (xmlhttp.readyState != 4 && xmlhttp.readyState != 0) { - notify("Please wait until operation finishes."); + printLockingError(); return } var query_str = "backend.php?op=feeds&subop=catchupAll"; @@ -172,7 +176,7 @@ function viewfeed(feed, skip, subop) { // document.getElementById('content').innerHTML=' '; if (xmlhttp.readyState != 4 && xmlhttp.readyState != 0) { - notify("Please wait until operation finishes."); + printLockingError(); return } @@ -188,7 +192,7 @@ function viewfeed(feed, skip, subop) { function view(id,feed_id) { if (xmlhttp.readyState != 4 && xmlhttp.readyState != 0) { - notify("Please wait until operation finishes."); + printLockingError(); return } @@ -234,7 +238,7 @@ function timeout() { function search(feed, sender) { if (xmlhttp.readyState != 4 && xmlhttp.readyState != 0) { - notify("Please wait until operation finishes."); + printLockingError(); return } diff --git a/updated.png b/updated.png index 1cff4c65..69589240 100644 Binary files a/updated.png and b/updated.png differ