diff options
author | Andrew Dolgov <[email protected]> | 2007-08-09 14:09:34 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-08-09 14:09:34 +0100 |
commit | 945c243e355d8f06779a395bda2f66bb0fd795c2 (patch) | |
tree | 340a4bc56045f068b29c71e0b956fb8d4866b8bb /prefs.js | |
parent | e4f4b46f9d5d42dc53c4e2c5489da31a8ce10c26 (diff) |
more published feeds work
Diffstat (limited to 'prefs.js')
-rw-r--r-- | prefs.js | 20 |
1 files changed, 14 insertions, 6 deletions
@@ -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; -} */ +} |