From: Andrew Dolgov Date: Mon, 22 Aug 2005 05:28:27 +0000 (+0100) Subject: forgot about functions.js X-Git-Tag: 0.1~6 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=7726fa023cc4430a71840012d99ec32e1c1126de;p=tt-rss.git forgot about functions.js --- diff --git a/functions.js b/functions.js new file mode 100644 index 00000000..25a19908 --- /dev/null +++ b/functions.js @@ -0,0 +1,30 @@ +function param_escape(arg) { + if (typeof encodeURIComponent != 'undefined') + return encodeURIComponent(arg); + else + return escape(arg); +} + +function param_unescape(arg) { + if (typeof decodeURIComponent != 'undefined') + return decodeURIComponent(arg); + else + return unescape(arg); +} + + +function notify(msg) { + + var n = document.getElementById("notify"); + + n.innerHTML = msg; + + if (msg.length == 0) { + n.style.display = "none"; + } else { + n.style.display = "block"; + } + +} + +