summaryrefslogtreecommitdiff
path: root/web-ui/app/js/mail_list/ui/mail_items/sent_item.js
diff options
context:
space:
mode:
Diffstat (limited to 'web-ui/app/js/mail_list/ui/mail_items/sent_item.js')
-rw-r--r--web-ui/app/js/mail_list/ui/mail_items/sent_item.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/web-ui/app/js/mail_list/ui/mail_items/sent_item.js b/web-ui/app/js/mail_list/ui/mail_items/sent_item.js
index 3e2e2723..3cfa25bd 100644
--- a/web-ui/app/js/mail_list/ui/mail_items/sent_item.js
+++ b/web-ui/app/js/mail_list/ui/mail_items/sent_item.js
@@ -28,12 +28,8 @@ define(
return defineComponent(sentItem, mailItem);
function sentItem() {
- function isOpeningOnANewTab(ev) {
- return ev.metaKey || ev.ctrlKey || ev.which === 2;
- }
-
this.triggerOpenMail = function (ev) {
- if (isOpeningOnANewTab(ev)) {
+ if (this.isOpeningOnANewTab(ev)) {
return;
}
this.trigger(document, events.ui.mail.open, { ident: this.attr.ident });