From 4d4200a87b0b5005373411b2a6757324ad9af077 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 18 May 2006 13:32:28 +0100 Subject: make updating feeds notify persistent, remove p_notify calls --- functions.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'functions.js') diff --git a/functions.js b/functions.js index bcbc93b36..1914855d6 100644 --- a/functions.js +++ b/functions.js @@ -93,7 +93,7 @@ function hide_notify() { } } -function notify_real(msg, doc) { +function notify_real(msg, doc, no_hide) { var n = doc.getElementById("notify"); var nb = doc.getElementById("notify_body"); @@ -115,15 +115,17 @@ function notify_real(msg, doc) { notify_last_doc = doc; notify_opacity = 1; - notify_hide_timerid = window.setTimeout(hide_notify, 3000); + if (!no_hide) { + notify_hide_timerid = window.setTimeout(hide_notify, 3000); + } } -function p_notify(msg) { - notify_real(msg, parent.document); +function p_notify(msg, no_hide) { + notify_real(msg, parent.document, no_hide); } -function notify(msg) { - notify_real(msg, document); +function notify(msg, no_hide) { + notify_real(msg, document, no_hide); } function printLockingError() { -- cgit v1.2.3