summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-02-09 23:19:26 +0300
committerAndrew Dolgov <[email protected]>2017-02-09 23:19:26 +0300
commit70c0a8c2e020f30e1b9f5cd8de18e01c80e0a1c6 (patch)
tree3a02272d5ae45ec6221b7c34096a832f5605c382 /js
parent3188e863b399446563c4952309f818c61bcfc079 (diff)
pass several image files used in notify messages to frontend as base64 to prevent broken error messages in case network connection is down. also, update some close buttons to show correct cursor.
Diffstat (limited to 'js')
-rwxr-xr-xjs/functions.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/functions.js b/js/functions.js
index 6ba0922aa..e29a834c9 100755
--- a/js/functions.js
+++ b/js/functions.js
@@ -212,15 +212,15 @@ function notify_real(msg, no_hide, n_type) {
msg = "<span class=\"msg\"> " + __(msg) + "</span>";
if (n_type == 2) {
- msg = "<span><img src='images/indicator_white.gif'></span>" + msg;
+ msg = "<span><img src=\""+getInitParam("icon_indicator_white")+"\"></span>" + msg;
no_hide = true;
} else if (n_type == 3) {
- msg = "<span><img src='images/alert.png'></span>" + msg;
+ msg = "<span><img src=\""+getInitParam("icon_alert")+"\"></span>" + msg;
} else if (n_type == 4) {
- msg = "<span><img src='images/information.png'></span>" + msg;
+ msg = "<span><img src=\""+getInitParam("icon_information")+"\"></span>" + msg;
}
- msg += " <span><img src=\"images/cross.png\" class=\"close\" title=\"" +
+ msg += " <span><img src=\""+getInitParam("icon_cross")+"\" class=\"close\" title=\"" +
__("Click to close") + "\" onclick=\"notify('')\"></span>";
n.innerHTML = msg;