summaryrefslogtreecommitdiff
path: root/js/PrefHelpers.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-15 07:59:11 +0300
committerAndrew Dolgov <[email protected]>2021-02-15 07:59:11 +0300
commit3c584376ca24e4bc5220c8dac4f1e238a245e7fe (patch)
tree8a8af09aff762e592bf0aa058591cf1fe5c6391a /js/PrefHelpers.js
parent9f31381bb6340349c83c394a6ffa15909a2ba3d1 (diff)
shared opml and feed dialogs: remove unique target element id, move associated methods into dialog
Diffstat (limited to 'js/PrefHelpers.js')
-rw-r--r--js/PrefHelpers.js25
1 files changed, 0 insertions, 25 deletions
diff --git a/js/PrefHelpers.js b/js/PrefHelpers.js
index 7a3d38d02..f7eca59a0 100644
--- a/js/PrefHelpers.js
+++ b/js/PrefHelpers.js
@@ -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;
- },
}
};