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);
}
}
}
updateUsersList();
} else if (id == "feedBrowser") {
updateBigFeedBrowser();
- } else if (id == "pubItems") {
- updatePublishedItems();
}
}
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;
+} */