From c05608c26e8b65736cc9db0ab3a2ceb08eba85d9 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 5 Sep 2005 16:49:39 +0100 Subject: notify window close button --- functions.js | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'functions.js') diff --git a/functions.js b/functions.js index f0d76769d..90245a192 100644 --- a/functions.js +++ b/functions.js @@ -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"; -- cgit v1.2.3-54-g00ecf