From 0b8cbc91565a88fc9c1689f6e22b6b650b799165 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 6 Dec 2018 15:22:52 +0300 Subject: remove some bitmaps and rework stuff using it to use iconfont instead --- js/AppBase.js | 6 ++---- js/common.js | 5 ++--- 2 files changed, 4 insertions(+), 7 deletions(-) (limited to 'js') diff --git a/js/AppBase.js b/js/AppBase.js index faad40348..9c05179c1 100644 --- a/js/AppBase.js +++ b/js/AppBase.js @@ -264,12 +264,10 @@ define(["dojo/_base/declare"], function (declare) { } if (k == "update_result") { - const updatesIcon = dijit.byId("updatesIcon").domNode; - if (v) { - Element.show(updatesIcon); + Element.show("updates-available"); } else { - Element.hide(updatesIcon); + Element.hide("updates-available"); } } diff --git a/js/common.js b/js/common.js index 6fde1e3ce..5b2812be6 100755 --- a/js/common.js +++ b/js/common.js @@ -199,9 +199,8 @@ const Notify = { else msgfmt = "%s".replace("%s", icon) + msgfmt; - msgfmt += ("close") - .replace("%s", App.getInitParam("icon_cross")); + msgfmt += "close"; notify.innerHTML = msgfmt; notify.addClassName("visible"); -- cgit v1.2.3