diff options
author | Alexandre Pretto Nunes <anunes@thoughtworks.com> | 2015-01-24 13:28:32 -0200 |
---|---|---|
committer | Pixpoa pairing <pixpoapairing@pixelated-project.org> | 2015-01-29 14:55:22 -0200 |
commit | 1af7c273015246c0cf4130278b2c17fca9de563a (patch) | |
tree | 5b86c94945d398d4846612b9a0d197b9ac157d95 /web-ui/app/js/mail_list/ui/mail_items/generic_mail_item.js | |
parent | 494960adc6ed4444e1b7d2ce027567ceefb2f972 (diff) |
Small refactor on mail items
Diffstat (limited to 'web-ui/app/js/mail_list/ui/mail_items/generic_mail_item.js')
-rw-r--r-- | web-ui/app/js/mail_list/ui/mail_items/generic_mail_item.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/web-ui/app/js/mail_list/ui/mail_items/generic_mail_item.js b/web-ui/app/js/mail_list/ui/mail_items/generic_mail_item.js index 3931ffd8..b700eeeb 100644 --- a/web-ui/app/js/mail_list/ui/mail_items/generic_mail_item.js +++ b/web-ui/app/js/mail_list/ui/mail_items/generic_mail_item.js @@ -33,12 +33,8 @@ define( READ: 'read' }; - function isOpeningOnANewTab(ev) { - return ev.metaKey || ev.ctrlKey || ev.which === 2; - } - this.triggerOpenMail = function (ev) { - if (isOpeningOnANewTab(ev)) { + if (this.isOpeningOnANewTab(ev)) { updateMailStatusToRead.call(this); return; } |