diff options
author | Andrew Dolgov <[email protected]> | 2020-09-15 18:08:08 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-09-15 18:08:08 +0300 |
commit | 0a142912d3cf9ffa226b5b024b1cf5c7a150d7e2 (patch) | |
tree | 5f82f3a474ff432fc05c0ec63a2f047808560c71 /js | |
parent | 154417d80b9f1ffb9d5d9fcbe2e6ab1dd15159bd (diff) |
backend handler: require CSRF, remove obsolete code
Diffstat (limited to 'js')
-rw-r--r-- | js/App.js | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -300,19 +300,19 @@ const App = { } }, helpDialog: function(topic) { - const query = "backend.php?op=backend&method=help&topic=" + encodeURIComponent(topic); - if (dijit.byId("helpDlg")) dijit.byId("helpDlg").destroyRecursive(); - const dialog = new dijit.Dialog({ - id: "helpDlg", - title: __("Help"), - style: "width: 600px", - href: query, - }); + xhrPost("backend.php", {op: "backend", method: "help", topic: topic}, (transport) => { + const dialog = new dijit.Dialog({ + id: "helpDlg", + title: __("Help"), + style: "width: 600px", + content: transport.responseText, + }); - dialog.show(); + dialog.show(); + }); }, displayDlg: function(title, id, param, callback) { Notify.progress("Loading, please wait...", true); |