summaryrefslogtreecommitdiff
path: root/js/prefs.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-12-14 15:51:27 +0400
committerAndrew Dolgov <[email protected]>2011-12-14 15:51:27 +0400
commit66be620a87aa93a1f9cc3e956942026ce31f2207 (patch)
tree888cb605c352f69b332fc63e1d5235975b6b836a /js/prefs.js
parent07391e36b8d8c4cfadcebe47046829457178cbba (diff)
do not include keyboard help files into index and prefs.php
Diffstat (limited to 'js/prefs.js')
-rw-r--r--js/prefs.js20
1 files changed, 14 insertions, 6 deletions
diff --git a/js/prefs.js b/js/prefs.js
index 896a787c6..bd3866991 100644
--- a/js/prefs.js
+++ b/js/prefs.js
@@ -1001,12 +1001,7 @@ function pref_hotkey_handler(e) {
if (!hotkey_prefix) {
if ((keycode == 191 || keychar == '?') && shift_key) { // ?
- if (!Element.visible("hotkey_help_overlay")) {
- //Element.show("hotkey_help_overlay");
- Effect.Appear("hotkey_help_overlay", {duration : 0.3, to: 0.9});
- } else {
- Element.hide("hotkey_help_overlay");
- }
+ showHelp();
return false;
}
@@ -1919,3 +1914,16 @@ function editSelectedInstance() {
editInstance(rows[0]);
}
+function showHelp() {
+ try {
+ new Ajax.Request("backend.php", {
+ parameters: "?op=backend&method=help&topic=prefs",
+ onComplete: function(transport) {
+ $("hotkey_help_overlay").innerHTML = transport.responseText;
+ Effect.Appear("hotkey_help_overlay", {duration : 0.3});
+ } });
+
+ } catch (e) {
+ exception_error("showHelp", e);
+ }
+}