1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-14 00:05:57 +00:00

shared opml and feed dialogs: remove unique target element id, move associated methods into dialog

This commit is contained in:
Andrew Dolgov
2021-02-15 07:59:11 +03:00
parent 9f31381bb6
commit 3c584376ca
2 changed files with 58 additions and 58 deletions

View File

@@ -291,30 +291,5 @@ const Helpers = {
console.log("export");
window.open("backend.php?op=opml&method=export&" + dojo.formToQuery("opmlExportForm"));
},
changeKey: function() {
if (confirm(__("Replace current OPML publishing address with a new one?"))) {
Notify.progress("Trying to change address...", true);
xhrJson("backend.php", {op: "pref-feeds", method: "regenOPMLKey"}, (reply) => {
if (reply) {
const new_link = reply.link;
const e = $('pub_opml_url');
if (new_link) {
e.href = new_link;
e.innerHTML = new_link;
new Effect.Highlight(e);
Notify.close();
} else {
Notify.error("Could not change feed URL.");
}
}
});
}
return false;
},
}
};