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/Utils.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'js/Utils.js') 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("Update daemon is not running.", true); + Notify.error("Update daemon is not running.", true); return; } @@ -253,7 +253,7 @@ define(["dojo/_base/declare"], function (declare) { } if (k == "daemon_stamp_ok" && v != 1) { - notify_error("Update daemon is not updating feeds.", true); + Notify.error("Update daemon is not updating feeds.", true); return; } -- cgit v1.2.3