summaryrefslogtreecommitdiff
path: root/plugins/note
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-18 11:54:29 +0300
committerAndrew Dolgov <[email protected]>2021-02-18 11:54:29 +0300
commit466cba39d86487ce3c81d7aeade96e9f9e4a119d (patch)
tree2e21056edf73e853319a05aa25b038c078c4cfd1 /plugins/note
parent1adb9bb6b643736706b746629b849df9cdf45e50 (diff)
parentb888bc2091c6737846f54a729ee047e4693fd8e3 (diff)
Merge branch 'master' of git.fakecake.org:fox/tt-rss
Diffstat (limited to 'plugins/note')
-rw-r--r--plugins/note/init.php4
-rw-r--r--plugins/note/note.js2
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);
});
});