fix help not loading on ? press
This commit is contained in:
parent
4034256f06
commit
6802e1bedf
12
js/tt-rss.js
12
js/tt-rss.js
|
@ -685,11 +685,13 @@ function hotkey_handler(e) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((keycode == 191 || keychar == '?') && shift_key) { // ?
|
if ((keycode == 191 || keychar == '?') && shift_key) { // ?
|
||||||
if (!Element.visible("hotkey_help_overlay")) {
|
|
||||||
Effect.Appear("hotkey_help_overlay", {duration : 0.3, to : 0.9});
|
new Ajax.Request("backend.php", {
|
||||||
} else {
|
parameters: "?op=backend&method=help&topic=main",
|
||||||
Element.hide("hotkey_help_overlay");
|
onComplete: function(transport) {
|
||||||
}
|
$("hotkey_help_overlay").innerHTML = transport.responseText;
|
||||||
|
Effect.Appear("hotkey_help_overlay", {duration : 0.3});
|
||||||
|
} });
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue