summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-08-22 13:44:50 +0100
committerAndrew Dolgov <[email protected]>2005-08-22 13:44:50 +0100
commita234aee5735c5b407925ab6495813c81403cabc1 (patch)
treeffaf1644032b481d179ae767c43bf9c38e7b674e /tt-rss.js
parent076682aa666847edb6456aae18824bfbd871f68e (diff)
changed updated.png
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js16
1 files changed, 10 insertions, 6 deletions
diff --git a/tt-rss.js b/tt-rss.js
index 7417fbb85..c78a4287d 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='&nbsp;';
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
}