diff options
author | Andrew Dolgov <[email protected]> | 2018-12-02 20:56:30 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-12-02 20:56:30 +0300 |
commit | 526389b2d380177490605037fdc3a24ebc688fac (patch) | |
tree | 65d79cebf0811e8927efeffac9f1e11b4552a63f /js/Utils.js | |
parent | 495248dd9783985750591c050d055ac4c2cf1712 (diff) |
update notify_* calls to use Notify
Diffstat (limited to 'js/Utils.js')
-rw-r--r-- | js/Utils.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/js/Utils.js b/js/Utils.js index f01ecbc48..1050cf018 100644 --- a/js/Utils.js +++ b/js/Utils.js @@ -110,7 +110,7 @@ define(["dojo/_base/declare"], function (declare) { dialog.show(); }, displayDlg: function(title, id, param, callback) { - notify_progress("Loading, please wait...", true); + Notify.progress("Loading, please wait...", true); const query = {op: "dlg", method: id, param: param}; @@ -143,7 +143,7 @@ define(["dojo/_base/declare"], function (declare) { dialog.show(); - notify(""); + Notify.close(); if (callback) callback(transport); } catch (e) { @@ -213,14 +213,14 @@ define(["dojo/_base/declare"], function (declare) { if (netalert) netalert.show(); else - notify_error("Communication problem with server."); + Notify.error("Communication problem with server."); } } catch (e) { if (netalert) netalert.show(); else - notify_error("Communication problem with server."); + Notify.error("Communication problem with server."); console.error(e); } @@ -238,7 +238,7 @@ define(["dojo/_base/declare"], function (declare) { console.log("RI:", k, "=>", v); if (k == "daemon_is_running" && v != 1) { - notify_error("<span onclick=\"Utils.explainError(1)\">Update daemon is not running.</span>", true); + Notify.error("<span onclick=\"Utils.explainError(1)\">Update daemon is not running.</span>", true); return; } @@ -253,7 +253,7 @@ define(["dojo/_base/declare"], function (declare) { } if (k == "daemon_stamp_ok" && v != 1) { - notify_error("<span onclick=\"Utils.explainError(3)\">Update daemon is not updating feeds.</span>", true); + Notify.error("<span onclick=\"Utils.explainError(3)\">Update daemon is not updating feeds.</span>", true); return; } |