]> git.wh0rd.org Git - tt-rss.git/commitdiff
catchupRelative: move to ajax.request
authorAndrew Dolgov <fox@bah.spb.su>
Thu, 30 Aug 2007 01:01:23 +0000 (02:01 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Thu, 30 Aug 2007 01:01:23 +0000 (02:01 +0100)
viewfeed.js

index 7106d781bcbdadf12a7e1b91f03ceb8d33c2c6ca..a1c99930827db11d05114da407bcf227592234f6 100644 (file)
@@ -1331,10 +1331,11 @@ function catchupRelativeToArticle(below) {
                                var query = "backend.php?op=rpc&subop=catchupSelected&ids=" +
                                        param_escape(ids_to_mark.toString()) + "&cmode=0";
 
-                               xmlhttp_rpc.open("GET", query, true);
-                               xmlhttp_rpc.onreadystatechange=catchup_callback;
-                               xmlhttp_rpc.send(null);
-       
+                               new Ajax.Request(query, {
+                                       onComplete: function(transport) { 
+                                               catchup_callback2(transport); 
+                                       } });
+
                        }
                }