mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 18:45:56 +00:00
* add (disabled) shortcut syntax for plugin methods
* add controls shortcut for pluginhandler tags * add similar shortcut for frontend * allow plugins to selectively exclude their methods from CSRF checking
This commit is contained in:
@@ -38,9 +38,7 @@ class Note extends Plugin {
|
||||
$note = $row['note'];
|
||||
|
||||
print \Controls\hidden_tag("id", $id);
|
||||
print \Controls\hidden_tag("op", "pluginhandler");
|
||||
print \Controls\hidden_tag("method", "setNote");
|
||||
print \Controls\hidden_tag("plugin", "note");
|
||||
print \Controls\pluginhandler_tags($this, "setnote");
|
||||
|
||||
?>
|
||||
<textarea dojoType='dijit.form.SimpleTextarea'
|
||||
|
||||
@@ -33,7 +33,7 @@ Plugins.Note = {
|
||||
const tmph = dojo.connect(dialog, 'onShow', function () {
|
||||
dojo.disconnect(tmph);
|
||||
|
||||
xhrPost("backend.php", {op: "pluginhandler", plugin: "note", method: "edit", id: id}, (transport) => {
|
||||
xhrPost("backend.php", App.getPhArgs("note", "edit", {id: id}), (transport) => {
|
||||
dialog.attr('content', transport.responseText);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user