]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix help not loading on ? press
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 26 Dec 2011 09:26:43 +0000 (13:26 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 26 Dec 2011 09:26:43 +0000 (13:26 +0400)
js/tt-rss.js

index 4f82545f9b607b4afca6aee057cf4df15e39314a..2cee8ae3ca44e12134bb5ef41d5dde5c640c7254 100644 (file)
@@ -685,11 +685,13 @@ function hotkey_handler(e) {
                        }
 
                        if ((keycode == 191 || keychar == '?') && shift_key) { // ?
-                               if (!Element.visible("hotkey_help_overlay")) {
-                                       Effect.Appear("hotkey_help_overlay", {duration : 0.3, to : 0.9});
-                               } else {
-                                       Element.hide("hotkey_help_overlay");
-                               }
+
+                               new Ajax.Request("backend.php", {
+                                       parameters: "?op=backend&method=help&topic=main",
+                                       onComplete: function(transport) {
+                                               $("hotkey_help_overlay").innerHTML = transport.responseText;
+                                               Effect.Appear("hotkey_help_overlay", {duration : 0.3});
+                                       } });
                                return false;
                        }