mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 10:05:58 +00:00
pref-feeds tweaks
This commit is contained in:
27
prefs.js
27
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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user