1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-22 11:36:38 +02:00

fix help not loading on ? press

This commit is contained in:
Andrew Dolgov 2011-12-26 13:26:43 +04:00
parent 4034256f06
commit 6802e1bedf

View 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;
}