summaryrefslogtreecommitdiff
path: root/js/prefs.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-02 20:56:30 +0300
committerAndrew Dolgov <[email protected]>2018-12-02 20:56:30 +0300
commit526389b2d380177490605037fdc3a24ebc688fac (patch)
tree65d79cebf0811e8927efeffac9f1e11b4552a63f /js/prefs.js
parent495248dd9783985750591c050d055ac4c2cf1712 (diff)
update notify_* calls to use Notify
Diffstat (limited to 'js/prefs.js')
-rwxr-xr-xjs/prefs.js12
1 files changed, 6 insertions, 6 deletions
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.");
}
}
});