From 13ad91024c057611f66f6599d4ed0bef5ff939fb Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 25 Aug 2005 07:57:51 +0100 Subject: more piggies! I demand MORE piggies!!! --- tt-rss.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tt-rss.js') diff --git a/tt-rss.js b/tt-rss.js index 1776c1c33..455a202c9 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -307,7 +307,22 @@ function update_title() { //document.title = "Tiny Tiny RSS (" + total_unread + " unread)"; } +function localPiggieFunction(enable) { + if (enable) { + var query_str = "backend.php?op=feeds&subop=piggie"; + + if (xmlhttp.readyState == 4 || xmlhttp.readyState == 0) { + + xmlhttp.open("GET", query_str, true); + xmlhttp.onreadystatechange=feedlist_callback; + xmlhttp.send(null); + } + } +} + + function init() { updateFeedList(false, false); + document.onkeydown = hotkey_handler; setTimeout("timeout()", 1800*1000); } -- cgit v1.2.3