diff options
author | Andrew Dolgov <[email protected]> | 2021-02-17 21:44:21 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-17 21:44:21 +0300 |
commit | e4609c18efceebb1e021d814f53061ada7f6489a (patch) | |
tree | 0968e0da3dc2d1b4cdc12c2a29549c27dc82ea14 /plugins/note | |
parent | b16abc157ee584f4be80a537ee24ec9e5ff25496 (diff) |
* 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
Diffstat (limited to 'plugins/note')
-rw-r--r-- | plugins/note/init.php | 4 | ||||
-rw-r--r-- | plugins/note/note.js | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/plugins/note/init.php b/plugins/note/init.php index 65e1f0eef..278cfe6c3 100644 --- a/plugins/note/init.php +++ b/plugins/note/init.php @@ -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' diff --git a/plugins/note/note.js b/plugins/note/note.js index 215058b21..bc6c48156 100644 --- a/plugins/note/note.js +++ b/plugins/note/note.js @@ -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); }); }); |