From: Andrew Dolgov Date: Tue, 23 May 2006 06:35:27 +0000 (+0100) Subject: remove rpc_pnotify_callback X-Git-Tag: 1.2.0~29 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=772bc83b8d9381e83e09462d4f6be3f93e567e98;p=tt-rss.git remove rpc_pnotify_callback --- diff --git a/functions.js b/functions.js index 58d50eea..f642cda8 100644 --- a/functions.js +++ b/functions.js @@ -47,13 +47,6 @@ function rpc_notify_callback() { } } -function rpc_pnotify_callback() { - var container = parent.document.getElementById('notify'); - if (xmlhttp_rpc.readyState == 4) { - container.innerHTML=xmlhttp_rpc.responseText; - } -} - function param_escape(arg) { if (typeof encodeURIComponent != 'undefined') return encodeURIComponent(arg); diff --git a/viewfeed.js b/viewfeed.js index 809d36d4..5a11c4e9 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -108,9 +108,9 @@ function toggleMark(id) { } } - xmlhttp_rpc.open("GET", query, true); - xmlhttp_rpc.onreadystatechange=rpc_pnotify_callback; - xmlhttp_rpc.send(null); + debug("toggle starred for aid " + id); + + new Ajax.Request(query); }