From 526389b2d380177490605037fdc3a24ebc688fac Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 2 Dec 2018 20:56:30 +0300 Subject: update notify_* calls to use Notify --- js/prefs.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'js/prefs.js') diff --git a/js/prefs.js b/js/prefs.js index 7c4021201..a1866f478 100755 --- a/js/prefs.js +++ b/js/prefs.js @@ -85,7 +85,7 @@ const App = { initSecondStage: function() { document.onkeydown = () => { App.hotkeyHandler(event) }; Utils.setLoadingProgress(50); - notify(""); + Notify.close(); let tab = Utils.urlParam('tab'); @@ -154,7 +154,7 @@ function opmlImportComplete(iframe) { Element.show(iframe); - notify(''); + Notify.close(); if (dijit.byId('opmlImportDlg')) dijit.byId('opmlImportDlg').destroyRecursive(); @@ -185,7 +185,7 @@ function opmlImport() { alert(__("Please choose an OPML file first.")); return false; } else { - notify_progress("Importing, please wait...", true); + Notify.progress("Importing, please wait...", true); Element.show("upload_iframe"); @@ -195,7 +195,7 @@ function opmlImport() { function opmlRegenKey() { if (confirm(__("Replace current OPML publishing address with a new one?"))) { - notify_progress("Trying to change address...", true); + Notify.progress("Trying to change address...", true); xhrJson("backend.php", { op: "pref-feeds", method: "regenOPMLKey" }, (reply) => { if (reply) { @@ -208,10 +208,10 @@ function opmlRegenKey() { new Effect.Highlight(e); - notify(''); + Notify.close(); } else { - notify_error("Could not change feed URL."); + Notify.error("Could not change feed URL."); } } }); -- cgit v1.2.3