]> git.wh0rd.org - tt-rss.git/commitdiff
code cleanup (remove old xmlhttp references)
authorAndrew Dolgov <fox@bah.org.ru>
Mon, 2 Feb 2009 08:49:00 +0000 (11:49 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Mon, 2 Feb 2009 08:49:00 +0000 (11:49 +0300)
functions.js
viewfeed.js

index 6827420c6b0a2da7bce37a846ff6cc075caaa73f..2c09be16cc20e0d093778caef56b3baa8d92482b 100644 (file)
@@ -1,5 +1,4 @@
 var hotkeys_enabled = true;
-var xmlhttp_rpc = Ajax.getTransport();
 var notify_silent = false;
 var last_progress_point = 0;
 var async_counters_work = false;
@@ -83,10 +82,6 @@ function enableHotkeys() {
        hotkeys_enabled = true;
 }
 
-function xmlhttp_ready(obj) {
-       return obj.readyState == 4 || obj.readyState == 0 || !obj.readyState;
-}
-
 function open_article_callback(transport) {
        try {
 
index 0f5345b9bfdd44ea16998bfb4f7b3d3c3f47d958..828a2e89ce0f9239b7c1f29c2d38ba4decbfbcab 100644 (file)
@@ -15,21 +15,6 @@ var post_under_pointer = false;
 
 var last_requested_article = false;
 
-function catchup_callback() {
-       if (xmlhttp_rpc.readyState == 4) {
-               try {
-                       debug("catchup_callback");
-                       notify("");                     
-                       all_counters_callback2(xmlhttp_rpc);
-                       if (_catchup_callback_func) {
-                               setTimeout(_catchup_callback_func, 10); 
-                       }
-               } catch (e) {
-                       exception_error("catchup_callback", e);
-               }
-       }
-}
-
 function catchup_callback2(transport, callback) {
        try {
                debug("catchup_callback2 " + transport + ", " + callback);
@@ -1696,10 +1681,7 @@ function catchupRelativeToArticle(below) {
 
        try {
 
-               if (!xmlhttp_ready(xmlhttp_rpc)) {
-                       printLockingError();
-               }
-       
+
                if (!getActiveArticleId()) {
                        alert(__("No article is selected."));
                        return;