]> git.wh0rd.org - tt-rss.git/blobdiff - prefs.js
published feeds work
[tt-rss.git] / prefs.js
index e9f52476f8ee38c14e68de17223bd364e8d25b81..a662aeef7711896c53a366fd8155e9f13f64e845 100644 (file)
--- 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;
+} */