]> git.wh0rd.org - tt-rss.git/commitdiff
forgot about functions.js
authorAndrew Dolgov <fox@madoka.spb.ru>
Mon, 22 Aug 2005 05:28:27 +0000 (06:28 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Mon, 22 Aug 2005 05:28:27 +0000 (06:28 +0100)
functions.js [new file with mode: 0644]

diff --git a/functions.js b/functions.js
new file mode 100644 (file)
index 0000000..25a1990
--- /dev/null
@@ -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";
+       }
+
+}
+
+