Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2021-11-14 14:06:22 +0300
committerAleksander Machniak <alec@alec.pl>2021-11-14 14:06:22 +0300
commita980375271bdb957da9e2b4f503616727f67a042 (patch)
tree62e726b9e9a2109684dd970f706c0bea347a858a /plugins
parentaa772c62707df7e44bb4e4311731fdbe3cd812e8 (diff)
Simplify invoking attachment upload dialog across skins
Diffstat (limited to 'plugins')
-rw-r--r--plugins/attachment_reminder/attachment_reminder.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/attachment_reminder/attachment_reminder.js b/plugins/attachment_reminder/attachment_reminder.js
index 973ff5561..722b7e75a 100644
--- a/plugins/attachment_reminder/attachment_reminder.js
+++ b/plugins/attachment_reminder/attachment_reminder.js
@@ -52,10 +52,7 @@ function rcmail_attachment_reminder_dialog()
buttons[rcmail.get_label('addattachment')] = function() {
$(this).remove();
- if (window.UI && UI.show_uploadform) // Larry skin
- UI.show_uploadform();
- else if (window.rcmail_ui && rcmail_ui.show_popup) // classic skin
- rcmail_ui.show_popup('uploadmenu', true);
+ $('#messagetoolbar a.attach, .toolbar a.attach').first().click();
};
buttons[rcmail.get_label('send')] = function(e) {
$(this).remove();