summaryrefslogtreecommitdiff
path: root/js/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2014-11-09 20:31:29 +0300
committerAndrew Dolgov <[email protected]>2014-11-09 20:31:29 +0300
commit0d41fd76d3be37903ee405e03cc7bd2e444c7e91 (patch)
treeaa108eaa2592f2672394fb283650104ebf23e8e2 /js/functions.js
parentc92af7f57f83b15f95a5f80315b3df9637b44f82 (diff)
notify fixes
Diffstat (limited to 'js/functions.js')
-rw-r--r--js/functions.js29
1 files changed, 19 insertions, 10 deletions
diff --git a/js/functions.js b/js/functions.js
index 720a5654a..98a531851 100644
--- a/js/functions.js
+++ b/js/functions.js
@@ -212,30 +212,39 @@ function notify_real(msg, no_hide, n_type) {
msg = "<span class=\"msg\"> " + __(msg) + "</span>";
if (n_type == 2) {
- n.className = "notify notify_progress visible";
msg = "<span><img src='images/indicator_white.gif'></span>" + msg;
no_hide = true;
} else if (n_type == 3) {
- n.className = "notify notify_error visible";
msg = "<span><img src='images/alert.png'></span>" + msg;
} else if (n_type == 4) {
- n.className = "notify notify_info visible";
msg = "<span><img src='images/information.png'></span>" + msg;
- } else {
- n.className = "notify visible";
}
msg += " <span><img src=\"images/cross.png\" class=\"close\" title=\"" +
__("Click to close") + "\" onclick=\"notify('')\"></span>";
-// msg = "<img src='images/live_com_loading.gif'> " + msg;
-
n.innerHTML = msg;
- if (!no_hide) {
- notify_hide_timerid = window.setTimeout(function() {
+ window.setTimeout(function() {
+ // goddamnit firefox
+ if (n_type == 2) {
+ n.className = "notify notify_progress visible";
+ } else if (n_type == 3) {
+ n.className = "notify notify_error visible";
+ msg = "<span><img src='images/alert.png'></span>" + msg;
+ } else if (n_type == 4) {
+ n.className = "notify notify_info visible";
+ } else {
+ n.className = "notify visible";
+ }
+
+ if (!no_hide) {
+ notify_hide_timerid = window.setTimeout(function() {
n.removeClassName("visible") }, 5*1000);
- }
+ }
+
+ }, 10);
+
}
function notify(msg, no_hide) {