]> git.wh0rd.org - tt-rss.git/blame - functions.js
forgot about functions.js
[tt-rss.git] / functions.js
CommitLineData
7726fa02
AD
1function param_escape(arg) {
2 if (typeof encodeURIComponent != 'undefined')
3 return encodeURIComponent(arg);
4 else
5 return escape(arg);
6}
7
8function param_unescape(arg) {
9 if (typeof decodeURIComponent != 'undefined')
10 return decodeURIComponent(arg);
11 else
12 return unescape(arg);
13}
14
15
16function notify(msg) {
17
18 var n = document.getElementById("notify");
19
20 n.innerHTML = msg;
21
22 if (msg.length == 0) {
23 n.style.display = "none";
24 } else {
25 n.style.display = "block";
26 }
27
28}
29
30