diff options
author | Giovane <giovaneliberato@gmail.com> | 2015-11-09 15:52:16 -0200 |
---|---|---|
committer | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-11-09 18:58:52 +0100 |
commit | f2f5473ead184032d1de6208bc2530dfb88455fc (patch) | |
tree | 248a9e4122ff5316e36698161e284e2f7579f4aa /web-ui/app/js/mail_view | |
parent | a222f811d07846dfdbeac963fa753fedbd88c13a (diff) |
Adds style and tag information on 'No Mails available' message.
- Issue #503
Diffstat (limited to 'web-ui/app/js/mail_view')
-rw-r--r-- | web-ui/app/js/mail_view/ui/no_mails_available_pane.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/web-ui/app/js/mail_view/ui/no_mails_available_pane.js b/web-ui/app/js/mail_view/ui/no_mails_available_pane.js index edcaade0..32b6bc19 100644 --- a/web-ui/app/js/mail_view/ui/no_mails_available_pane.js +++ b/web-ui/app/js/mail_view/ui/no_mails_available_pane.js @@ -29,15 +29,17 @@ define( return defineComponent(noMailsAvailablePane); function noMailsAvailablePane() { + this.defaultAttrs({ + tag: null + }); this.render = function() { - this.$node.html(templates.noMailsAvailable()); + this.attr.tag = this.attr.tag.toUpperCase(); + this.$node.html(templates.noMailsAvailable(this.attr)); }; this.after('initialize', function () { this.render(); - - // this.on(document, events.dispatchers.middlePane.clear, this.teardown); }); } } |