From 772bc83b8d9381e83e09462d4f6be3f93e567e98 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 23 May 2006 07:35:27 +0100 Subject: [PATCH] remove rpc_pnotify_callback --- functions.js | 7 ------- viewfeed.js | 6 +++--- 2 files changed, 3 insertions(+), 10 deletions(-) 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); } -- 2.39.5