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

backend handler: require CSRF, remove obsolete code

This commit is contained in:
Andrew Dolgov
2020-09-15 18:08:08 +03:00
parent 154417d80b
commit 0a142912d3
2 changed files with 12 additions and 84 deletions

View File

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