X-Git-Url: https://git.wh0rd.org/?p=tt-rss.git;a=blobdiff_plain;f=js%2Ffunctions.js;h=720a5654a95d73e4f8d15af0ed09817088499f47;hp=9915e6808542c57f64be2904afec4be69247e686;hb=d9c93ebfdb860878609c6a59ef4df99f8f93643f;hpb=e44280a0bd650239ef1d931d1d41cb0379df4eb9
diff --git a/js/functions.js b/js/functions.js
index 9915e680..720a5654 100644
--- a/js/functions.js
+++ b/js/functions.js
@@ -182,11 +182,6 @@ function param_unescape(arg) {
return unescape(arg);
}
-
-function hide_notify() {
- Element.hide('notify');
-}
-
function notify_real(msg, no_hide, n_type) {
var n = $("notify");
@@ -198,13 +193,11 @@ function notify_real(msg, no_hide, n_type) {
}
if (msg == "") {
- if (Element.visible(n)) {
- notify_hide_timerid = window.setTimeout("hide_notify()", 0);
+ if (n.hasClassName("visible")) {
+ notify_hide_timerid = window.setTimeout(function() {
+ n.removeClassName("visible") }, 0);
}
return;
- } else {
- Element.show(n);
- new Effect.Highlight(n);
}
/* types:
@@ -218,18 +211,18 @@ function notify_real(msg, no_hide, n_type) {
msg = " " + __(msg) + "";
- if (n_type == 1) {
- n.className = "notify";
- } else if (n_type == 2) {
- n.className = "notify progress";
+ if (n_type == 2) {
+ n.className = "notify notify_progress visible";
msg = "" + msg;
no_hide = true;
} else if (n_type == 3) {
- n.className = "notify error";
+ n.className = "notify notify_error visible";
msg = "" + msg;
} else if (n_type == 4) {
- n.className = "notify info";
+ n.className = "notify notify_info visible";
msg = "" + msg;
+ } else {
+ n.className = "notify visible";
}
msg += "