summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-08-21 17:16:41 +0100
committerAndrew Dolgov <[email protected]>2005-08-21 17:16:41 +0100
commitac53063ab9a0a2a13ea40cafd5e6e2b383976578 (patch)
tree9ce0d3295c76438884f17e9624a209e4ffa64487 /tt-rss.js
parent40d13c283683b15d7a5d40cfcd158dc84c440085 (diff)
basic functionality pass 4
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js18
1 files changed, 16 insertions, 2 deletions
diff --git a/tt-rss.js b/tt-rss.js
index 7e6699856..aeaac22cc 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -144,7 +144,21 @@ function timeout() {
update_feed_list(true);
- setTimeout("timeout()", 120*1000);
+ setTimeout("timeout()", 1800*1000);
+
+}
+
+function search(feed, sender) {
+
+ notify("Search: " + feed + ", " + sender.value)
+
+ document.getElementById('headlines').innerHTML='Loading headlines, please wait...';
+ document.getElementById('content').innerHTML='&nbsp;';
+
+ xmlhttp.open("GET", "backend.php?op=viewfeed&feed=" + param_escape(feed) +
+ "&search=" + param_escape(sender.value) + "&ext=SEARCH", true);
+ xmlhttp.onreadystatechange=viewfeed_callback;
+ xmlhttp.send(null);
}
@@ -154,6 +168,6 @@ function init() {
update_feed_list();
- setTimeout("timeout()", 120*1000);
+ setTimeout("timeout()", 1800*1000);
}