]> git.wh0rd.org - tt-rss.git/blobdiff - tt-rss.js
more piggies! I demand MORE piggies!!!
[tt-rss.git] / tt-rss.js
index 1776c1c3314fd67e845ce48e2136191969f297c6..455a202c931b53608eb5bab20fd9579196067feb 100644 (file)
--- 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);
 }