From e4f4b46f9d5d42dc53c4e2c5489da31a8ce10c26 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 9 Aug 2007 13:45:30 +0100 Subject: published feeds work --- prefs.js | 57 +++++++++++++++++++++++++++++++++------------------------ 1 file changed, 33 insertions(+), 24 deletions(-) (limited to 'prefs.js') diff --git a/prefs.js b/prefs.js index e9f52476f..a662aeef7 100644 --- a/prefs.js +++ b/prefs.js @@ -16,32 +16,33 @@ var caller_subop = false; var sanity_check_done = false; -function expand_feed_callback() { +/* +function replace_pubkey_callback() { if (xmlhttp.readyState == 4) { try { - var container = document.getElementById("BRDET-" + feed_to_expand); - container.innerHTML=xmlhttp.responseText; - container.style.display = "block"; -// p_notify(""); + var link = document.getElementById("pubGenAddress"); + + if (xmlhttp.responseXML) { + + + } else { + notify_error("Error while changing adress"); + } } catch (e) { - exception_error("expand_feed_callback", e); + exception_error("replace_pubkey_callback", e); } } -} +} */ -function pubitems_callback() { +function expand_feed_callback() { if (xmlhttp.readyState == 4) { try { - var container = document.getElementById('prefContent'); + var container = document.getElementById("BRDET-" + feed_to_expand); container.innerHTML=xmlhttp.responseText; - selectTab("pubItems", true); - - if (typeof correctPNG != 'undefined') { - correctPNG(); - } - notify(""); + container.style.display = "block"; +// p_notify(""); } catch (e) { - exception_error("feedlist_callback", e); + exception_error("expand_feed_callback", e); } } } @@ -1285,8 +1286,6 @@ function selectTab(id, noupdate, subop) { updateUsersList(); } else if (id == "feedBrowser") { updateBigFeedBrowser(); - } else if (id == "pubItems") { - updatePublishedItems(); } } @@ -1749,14 +1748,24 @@ function feedlistToggleSLAT() { updateFeedList() } -function updatePublishedItems() { +/* +function pubRegenKey() { + if (!xmlhttp_ready(xmlhttp)) { printLockingError(); - return + return false; } - xmlhttp.open("GET", "backend.php?op=pref-pubitems"); - xmlhttp.onreadystatechange=pubitems_callback; - xmlhttp.send(null); + var ok = confirm("Replace current publishing address with a new one?"); -} + if (ok) { + + notify_progress("Trying to change address..."); + + xmlhttp.open("GET", "backend.php?op=backend-rpc&subop=regen-pub-key"); + xmlhttp.onreadystatechange=replace_pubkey_callback; + xmlhttp.send(null); + } + + return false; +} */ -- cgit v1.2.3