1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 20:55:55 +00:00

remove backend helper and move its only function to rpc for the time being

This commit is contained in:
Andrew Dolgov
2021-02-16 14:51:42 +03:00
parent d7127cead3
commit 22fc6871e8
3 changed files with 77 additions and 95 deletions

View File

@@ -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";