summaryrefslogtreecommitdiff
path: root/prefs.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2008-03-20 06:34:43 +0100
committerAndrew Dolgov <[email protected]>2008-03-20 06:34:43 +0100
commite635d56a000032fcfb48e93aad58be367a3cfa8d (patch)
treecbe6fc619ace158722a503e9ece22f67f911196f /prefs.js
parentd757a83ff5b9d9e1eb2962857bf080c001bcfe9d (diff)
pref-feeds tweaks
Diffstat (limited to 'prefs.js')
-rw-r--r--prefs.js27
1 files changed, 23 insertions, 4 deletions
diff --git a/prefs.js b/prefs.js
index 56de40ad3..43a554cf2 100644
--- 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);
@@ -1815,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 {