1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-14 04:25:56 +00:00

notify window close button

This commit is contained in:
Andrew Dolgov
2005-09-05 16:49:39 +01:00
parent 54aa1a4113
commit c05608c26e
9 changed files with 117 additions and 8 deletions

View File

@@ -50,13 +50,31 @@ function delay(gap) {
}
}
function p_notify(msg) {
var n = parent.document.getElementById("notify");
var nb = parent.document.getElementById("notify_body");
if (!n || !nb) return;
nb.innerHTML = msg;
if (msg.length == 0) {
n.style.display = "none";
} else {
n.style.display = "block";
}
}
function notify(msg) {
var n = document.getElementById("notify");
var nb = document.getElementById("notify_body");
if (!n) return;
if (!n || !nb) return;
n.innerHTML = msg;
nb.innerHTML = msg;
if (msg.length == 0) {
n.style.display = "none";