]> git.wh0rd.org - tt-rss.git/commitdiff
fix broken hotkeys
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 25 Feb 2006 07:47:06 +0000 (08:47 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 25 Feb 2006 07:47:06 +0000 (08:47 +0100)
functions.js

index e71e748e952fbd30c6235790a4f574701ef038d3..d7dcd08f4519848adac726b9fc1d718a1a64df3a 100644 (file)
@@ -129,11 +129,14 @@ function hotkey_handler(e) {
                seq = seq + "" + keycode;
        }
 
-       if (seq.match("807371717369")) {
-               seq = "";
-               localPiggieFunction(true);
-       } else {
-               localPiggieFunction(false);
+       if (document.getElementById("piggie")) {
+
+               if (seq.match("807371717369")) {
+                       seq = "";
+                       localPiggieFunction(true);
+               } else {
+                       localPiggieFunction(false);
+               }
        }
        
        if (typeof localHotkeyHandler != 'undefined') {