summaryrefslogtreecommitdiff
path: root/prefs.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-08-09 14:09:34 +0100
committerAndrew Dolgov <[email protected]>2007-08-09 14:09:34 +0100
commit945c243e355d8f06779a395bda2f66bb0fd795c2 (patch)
tree340a4bc56045f068b29c71e0b956fb8d4866b8bb /prefs.js
parente4f4b46f9d5d42dc53c4e2c5489da31a8ce10c26 (diff)
more published feeds work
Diffstat (limited to 'prefs.js')
-rw-r--r--prefs.js20
1 files changed, 14 insertions, 6 deletions
diff --git a/prefs.js b/prefs.js
index a662aeef7..0fec36206 100644
--- a/prefs.js
+++ b/prefs.js
@@ -16,7 +16,6 @@ var caller_subop = false;
var sanity_check_done = false;
-/*
function replace_pubkey_callback() {
if (xmlhttp.readyState == 4) {
try {
@@ -24,15 +23,25 @@ function replace_pubkey_callback() {
if (xmlhttp.responseXML) {
+ var new_link = xmlhttp.responseXML.getElementsByTagName("link")[0];
+
+ if (new_link) {
+ link.href = new_link.firstChild.nodeValue;
+ link.innerHTML = new_link.firstChild.nodeValue;
+
+ notify_info("Address changed");
+ } else {
+ notify_error("Could not change address");
+ }
} else {
- notify_error("Error while changing adress");
+ notify_error("Could not change address");
}
} catch (e) {
exception_error("replace_pubkey_callback", e);
}
}
-} */
+}
function expand_feed_callback() {
if (xmlhttp.readyState == 4) {
@@ -1748,7 +1757,6 @@ function feedlistToggleSLAT() {
updateFeedList()
}
-/*
function pubRegenKey() {
if (!xmlhttp_ready(xmlhttp)) {
@@ -1762,10 +1770,10 @@ function pubRegenKey() {
notify_progress("Trying to change address...");
- xmlhttp.open("GET", "backend.php?op=backend-rpc&subop=regen-pub-key");
+ xmlhttp.open("GET", "backend.php?op=rpc&subop=regenPubKey");
xmlhttp.onreadystatechange=replace_pubkey_callback;
xmlhttp.send(null);
}
return false;
-} */
+}