summaryrefslogtreecommitdiff
path: root/web-ui/app/js/mail_list/ui/mail_items/draft_item.js
diff options
context:
space:
mode:
authorRafael Lisboa <rafaelzlisboa@gmail.com>2015-04-14 16:13:49 -0300
committerRafael Lisboa <rafaelzlisboa@gmail.com>2015-04-14 16:13:49 -0300
commitf4aa7e41b343704843002ffc8a85c58abf09b911 (patch)
tree3a8b54edf62fadcb322d0f5cabeecde2c83f3067 /web-ui/app/js/mail_list/ui/mail_items/draft_item.js
parent2ec6d6260c8fcc66446d3e600b70dd0043109744 (diff)
parent8d2869fa1fa2018772d4f310c4ba9b9c9373a667 (diff)
Merge pull request #376 from pixelated-project/mail-item-refactor
Mail item refactor
Diffstat (limited to 'web-ui/app/js/mail_list/ui/mail_items/draft_item.js')
-rw-r--r--web-ui/app/js/mail_list/ui/mail_items/draft_item.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/web-ui/app/js/mail_list/ui/mail_items/draft_item.js b/web-ui/app/js/mail_list/ui/mail_items/draft_item.js
index fda6c3f8..57fbafd5 100644
--- a/web-ui/app/js/mail_list/ui/mail_items/draft_item.js
+++ b/web-ui/app/js/mail_list/ui/mail_items/draft_item.js
@@ -33,16 +33,14 @@ define(
if (this.isOpeningOnANewTab(ev)) {
return;
}
- this.trigger(document, events.dispatchers.rightPane.openDraft, { ident: this.attr.ident });
- this.trigger(document, events.ui.mail.updateSelected, { ident: this.attr.ident });
- this.trigger(document, events.router.pushState, { mailIdent: this.attr.ident });
+ this.trigger(document, events.dispatchers.rightPane.openDraft, { ident: this.attr.mail.ident });
+ this.trigger(document, events.ui.mail.updateSelected, { ident: this.attr.mail.ident });
+ this.trigger(document, events.router.pushState, { mailIdent: this.attr.mail.ident });
ev.preventDefault(); // don't let the hashchange trigger a popstate
};
this.after('initialize', function () {
- this.initializeAttributes();
this.render();
- this.attachListeners();
if (this.attr.isChecked) {
this.checkCheckbox();