summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
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");