summaryrefslogtreecommitdiff
path: root/js/App.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-16 14:51:42 +0300
committerAndrew Dolgov <[email protected]>2021-02-16 14:51:42 +0300
commit22fc6871e8eca507578381bda6d6683d2082810b (patch)
tree6496bbfcd04f0e6717b0cb2b5246f6cdf52785e6 /js/App.js
parentd7127cead362ba00b0defd93b2091ce15aeae2f3 (diff)
remove backend helper and move its only function to rpc for the time being
Diffstat (limited to 'js/App.js')
-rw-r--r--js/App.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/App.js b/js/App.js
index 4b2adc388..bb861829d 100644
--- a/js/App.js
+++ b/js/App.js
@@ -321,10 +321,10 @@ const App = {
Effect.Fade(elemId, {duration : 0.5});
}
},
- helpDialog: function(topic) {
- xhrPost("backend.php", {op: "backend", method: "help", topic: topic}, (transport) => {
+ hotkeyHelp: function() {
+ xhrPost("backend.php", {op: "rpc", method: "hotkeyHelp"}, (transport) => {
const dialog = new fox.SingleUseDialog({
- title: __("Help"),
+ title: __("Keyboard shortcuts"),
content: transport.responseText,
});
@@ -850,7 +850,7 @@ const App = {
};
this.hotkey_actions["help_dialog"] = () => {
- this.helpDialog("main");
+ this.hotkeyHelp();
};
} else {
@@ -1100,7 +1100,7 @@ const App = {
}
};
this.hotkey_actions["help_dialog"] = () => {
- this.helpDialog("main");
+ this.hotkeyHelp();
};
this.hotkey_actions["toggle_combined_mode"] = () => {
const value = this.isCombinedMode() ? "false" : "true";