diff options
author | Andrew Dolgov <[email protected]> | 2021-02-12 15:22:10 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-12 15:22:10 +0300 |
commit | 3d11c61f326ef133427f6f37de4429e879c725f2 (patch) | |
tree | 472a31623e184383ae61d189662fb29a3808f454 /plugins/mail/mail.js | |
parent | 219cc9a0ab0da20cb82df2647508e29f7f9d1515 (diff) |
* OPML import: don't reload everything, just feed tree
* dialogs: use auto-destroying dialog for almost all dialogs instead of destroying them manually
* some general dialog-related cleanup
Diffstat (limited to 'plugins/mail/mail.js')
-rw-r--r-- | plugins/mail/mail.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/mail/mail.js b/plugins/mail/mail.js index 89e395221..5ddc0dc41 100644 --- a/plugins/mail/mail.js +++ b/plugins/mail/mail.js @@ -1,7 +1,9 @@ +/* global Plugins, Headlines, xhrJson, Notify, fox, __ */ + Plugins.Mail = { send: function(id) { if (!id) { - let ids = Headlines.getSelected(); + const ids = Headlines.getSelected(); if (ids.length == 0) { alert(__("No articles selected.")); @@ -11,12 +13,9 @@ Plugins.Mail = { id = ids.toString(); } - if (dijit.byId("emailArticleDlg")) - dijit.byId("emailArticleDlg").destroyRecursive(); - const query = "backend.php?op=pluginhandler&plugin=mail&method=emailArticle¶m=" + encodeURIComponent(id); - const dialog = new dijit.Dialog({ + const dialog = new fox.SingleUseDialog({ id: "emailArticleDlg", title: __("Forward article by email"), execute: function () { |