From: Andrew Dolgov Date: Thu, 30 Aug 2007 01:01:23 +0000 (+0100) Subject: catchupRelative: move to ajax.request X-Git-Tag: 1.2.15~15 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=5fe7767c0ea24d98abc8866cdc9a1f268c083d75;p=tt-rss.git catchupRelative: move to ajax.request --- diff --git a/viewfeed.js b/viewfeed.js index 7106d781..a1c99930 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -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); + } }); + } }