summaryrefslogtreecommitdiff
path: root/plugins/mailto/init.js
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mailto/init.js')
-rw-r--r--plugins/mailto/init.js39
1 files changed, 0 insertions, 39 deletions
diff --git a/plugins/mailto/init.js b/plugins/mailto/init.js
deleted file mode 100644
index 4a9557249..000000000
--- a/plugins/mailto/init.js
+++ /dev/null
@@ -1,39 +0,0 @@
-/* global Plugins, Headlines, xhr, dojo, fox, __ */
-
-Plugins.Mailto = {
- send: function (id) {
- if (!id) {
- const ids = Headlines.getSelected();
-
- if (ids.length == 0) {
- alert(__("No articles selected."));
- return;
- }
-
- id = ids.toString();
- }
-
- const dialog = new fox.SingleUseDialog({
- title: __("Forward article by email (mailto:)"),
- content: __("Loading, please wait...")
- });
-
- const tmph = dojo.connect(dialog, 'onShow', function () {
- dojo.disconnect(tmph);
-
- xhr.post("backend.php", App.getPhArgs("mailto", "emailArticle", {ids: id}), (reply) => {
- dialog.attr('content', reply);
- });
- });
-
-
- dialog.show();
- }
-};
-
-// override default hotkey action if enabled
-Plugins.Mail = Plugins.Mail || {};
-
-Plugins.Mail.onHotkey = function(id) {
- Plugins.Mailto.send(id);
-};