From 6802e1bedfa0c108d9e24dc7fe58e3dc14489eb8 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 26 Dec 2011 13:26:43 +0400 Subject: [PATCH] fix help not loading on ? press --- js/tt-rss.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/js/tt-rss.js b/js/tt-rss.js index 4f82545f..2cee8ae3 100644 --- a/js/tt-rss.js +++ b/js/tt-rss.js @@ -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; } -- 2.39.5