summaryrefslogtreecommitdiff
path: root/web-ui/app
diff options
context:
space:
mode:
authorrafael lisboa <rafaelzlisboa@gmail.com>2015-04-14 15:01:53 -0300
committerrafael lisboa <rafaelzlisboa@gmail.com>2015-04-14 15:28:13 -0300
commit8d2869fa1fa2018772d4f310c4ba9b9c9373a667 (patch)
tree175e068f7473e220861ea91026fb16c71b7d3c40 /web-ui/app
parentaec0d6a733c19128e8f0c5e2cf77bbe706b404c2 (diff)
remove no longer used method on mail_item
Diffstat (limited to 'web-ui/app')
-rw-r--r--web-ui/app/js/mail_list/ui/mail_items/mail_item.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/web-ui/app/js/mail_list/ui/mail_items/mail_item.js b/web-ui/app/js/mail_list/ui/mail_items/mail_item.js
index efcb6cf9..266db926 100644
--- a/web-ui/app/js/mail_list/ui/mail_items/mail_item.js
+++ b/web-ui/app/js/mail_list/ui/mail_items/mail_item.js
@@ -30,10 +30,6 @@ define(
else { this.doUnselect(); }
};
- this.formattedDate = function (date) {
- return viewHelper.getFormattedDate(new Date(date));
- };
-
this.isOpeningOnANewTab = function (ev) {
return ev.metaKey || ev.ctrlKey || ev.which === 2;
};
@@ -72,8 +68,8 @@ define(
this.attr.mail.tagsForListView = _.without(this.attr.mail.tags, this.attr.tag);
var mailItemHtml = templates.mails[this.attr.templateType](this.attr.mail);
this.$node.html(mailItemHtml);
- this.$node.addClass(this.attr.statuses);
- if(this.attr.selected) { this.doSelect(); }
+ this.$node.addClass(viewHelper.formatStatusClasses(this.attr.mail.status));
+ if (this.attr.selected) { this.doSelect(); }
this.on(this.$node.find('a'), 'click', this.triggerOpenMail);
};