diff options
author | Andrew Dolgov <[email protected]> | 2021-02-18 11:54:29 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-18 11:54:29 +0300 |
commit | 466cba39d86487ce3c81d7aeade96e9f9e4a119d (patch) | |
tree | 2e21056edf73e853319a05aa25b038c078c4cfd1 /plugins/mail | |
parent | 1adb9bb6b643736706b746629b849df9cdf45e50 (diff) | |
parent | b888bc2091c6737846f54a729ee047e4693fd8e3 (diff) |
Merge branch 'master' of git.fakecake.org:fox/tt-rss
Diffstat (limited to 'plugins/mail')
-rw-r--r-- | plugins/mail/init.php | 12 | ||||
-rw-r--r-- | plugins/mail/mail.js | 2 |
2 files changed, 5 insertions, 9 deletions
diff --git a/plugins/mail/init.php b/plugins/mail/init.php index bb576a4d9..4b62d1e64 100644 --- a/plugins/mail/init.php +++ b/plugins/mail/init.php @@ -45,9 +45,7 @@ class Mail extends Plugin { title="<i class='material-icons'>mail</i> <?= __('Mail plugin') ?>"> <form dojoType="dijit.form.Form"> - <?= \Controls\hidden_tag("op", "pluginhandler") ?> - <?= \Controls\hidden_tag("method", "save") ?> - <?= \Controls\hidden_tag("plugin", "mail") ?> + <?= \Controls\pluginhandler_tags($this, "save") ?> <script type="dojo/method" event="onSubmit" args="evt"> evt.preventDefault(); @@ -150,12 +148,10 @@ class Mail extends Plugin { <form dojoType='dijit.form.Form'> - <?= \Controls\hidden_tag("op", "pluginhandler") ?> - <?= \Controls\hidden_tag("plugin", "mail") ?> - <?= \Controls\hidden_tag("method", "sendEmail") ?> + <?= \Controls\pluginhandler_tags($this, "sendemail") ?> - <?= \Controls\hidden_tag("from_email", "$user_email") ?> - <?= \Controls\hidden_tag("from_name", "$user_name") ?> + <?= \Controls\hidden_tag("from_email", $user_email) ?> + <?= \Controls\hidden_tag("from_name", $user_name) ?> <script type='dojo/method' event='onSubmit' args='evt'> evt.preventDefault(); diff --git a/plugins/mail/mail.js b/plugins/mail/mail.js index 4cdf6999d..36b0baac5 100644 --- a/plugins/mail/mail.js +++ b/plugins/mail/mail.js @@ -38,7 +38,7 @@ Plugins.Mail = { const tmph = dojo.connect(dialog, 'onShow', function () { dojo.disconnect(tmph); - xhrPost("backend.php", {op: "pluginhandler", plugin: "mail", method: "emailArticle", ids: id}, (transport) => { + xhrPost("backend.php", App.getPhArgs("mail", "emailArticle", {ids: id}), (transport) => { dialog.attr('content', transport.responseText); }); }); |