From 919984a43644da47a978b8ddd6d07be7273f6366 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 27 Mar 2013 22:24:26 +0400 Subject: css cleanup; change notify css a bit --- js/functions.js | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'js/functions.js') diff --git a/js/functions.js b/js/functions.js index e93ca54e0..ec170a7d9 100644 --- a/js/functions.js +++ b/js/functions.js @@ -194,30 +194,29 @@ function notify_real(msg, no_hide, n_type) { */ - if (typeof __ != 'undefined') { - msg = __(msg); - } + msg = __(msg); if (n_type == 1) { n.className = "notify"; } else if (n_type == 2) { - n.className = "notifyProgress"; + n.className = "notify progress"; msg = " " + msg; } else if (n_type == 3) { - n.className = "notifyError"; + n.className = "notify error"; msg = " " + msg; } else if (n_type == 4) { - n.className = "notifyInfo"; + n.className = "notify info"; msg = " " + msg; } -// msg = " " + msg; - if (no_hide) { - msg += " (X)"; + msg += " (" + + __("close") + ")"; } +// msg = " " + msg; + nb.innerHTML = msg; if (!no_hide) { -- cgit v1.2.3-54-g00ecf