]> git.wh0rd.org - tt-rss.git/blobdiff - prefs.js
pref-feeds tweaks
[tt-rss.git] / prefs.js
index e64d51173b7774f12564dc4b8591d1f0e2c072c1..43a554cf2ba02fb2b8045b0c4cd7f06156fb81ab 100644 (file)
--- a/prefs.js
+++ b/prefs.js
@@ -37,17 +37,17 @@ function replace_pubkey_callback() {
 
                                if (new_link) {
                                        link.href = new_link.firstChild.nodeValue;
-                                       link.innerHTML = new_link.firstChild.nodeValue;
+                                       //link.innerHTML = new_link.firstChild.nodeValue;
 
                                        new Effect.Highlight(link);
 
-                                       notify_info("Address changed.");
+                                       notify_info("Published feed URL changed.");
                                } else {
-                                       notify_error("Could not change address.");
+                                       notify_error("Could not change feed URL.");
                                }
 
                        } else {
-                               notify_error("Could not change address.");
+                               notify_error("Could not change feed URL.");
                        }
                } catch (e) {
                        exception_error("replace_pubkey_callback", e);
@@ -856,18 +856,6 @@ function feedCatEditSave() {
        return false;
 }
 
-
-
-function displayHelpInfobox(topic_id) {
-
-       var url = "backend.php?op=help&tid=" + param_escape(topic_id);
-
-       var w = window.open(url, "ttrss_help", 
-               "status=0,toolbar=0,location=0,width=450,height=500,scrollbars=1,menubar=0");
-
-       return false;
-}
-
 function labelEditCancel() {
 
        if (!xmlhttp_ready(xmlhttp)) {
@@ -1827,6 +1815,25 @@ function pubRegenKey() {
        return false;
 }
 
+function pubToClipboard() {
+
+       try {
+
+               if (!xmlhttp_ready(xmlhttp)) {
+                       printLockingError();
+                       return false;
+               }
+       
+               var link = document.getElementById("pubGenAddress");
+               alert(link.href);
+
+       } catch (e) {
+               exception_error("pubToClipboard", e);
+       }
+
+       return false; 
+}
+
 function validatePrefsSave() {
        try {