summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-06 15:22:52 +0300
committerAndrew Dolgov <[email protected]>2018-12-06 15:22:52 +0300
commit0b8cbc91565a88fc9c1689f6e22b6b650b799165 (patch)
tree9bef44221c7609953f5512fcd5ad950c269a8bfe /js
parent7609ccb16d5d10760e44ce7b9087fd24cdfd47ac (diff)
remove some bitmaps and rework stuff using it to use iconfont instead
Diffstat (limited to 'js')
-rw-r--r--js/AppBase.js6
-rwxr-xr-xjs/common.js5
2 files changed, 4 insertions, 7 deletions
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 = "<i class='material-icons icon-notify'>%s</i>".replace("%s", icon) + msgfmt;
- msgfmt += ("<i class='material-icons icon-close' title=\"" +
- __("Click to close") + "\" onclick=\"Notify.close()\">close</i>")
- .replace("%s", App.getInitParam("icon_cross"));
+ msgfmt += "<i class='material-icons icon-close' title=\"" +
+ __("Click to close") + "\" onclick=\"Notify.close()\">close</i>";
notify.innerHTML = msgfmt;
notify.addClassName("visible");