]> git.wh0rd.org - tt-rss.git/commitdiff
remove rpc_pnotify_callback
authorAndrew Dolgov <fox@madoka.spb.ru>
Tue, 23 May 2006 06:35:27 +0000 (07:35 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Tue, 23 May 2006 06:35:27 +0000 (07:35 +0100)
functions.js
viewfeed.js

index 58d50eea95d2894715e1d3cc026260ac37912725..f642cda85e7bc42496f260524f3717b060b94551 100644 (file)
@@ -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); 
index 809d36d4e07632789ebdf098a41f76d1c88a6264..5a11c4e99d6b2c9ddcf658d0ba508adb0121f022 100644 (file)
@@ -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);
 
 }