diff options
author | Vicente Luchi <vicente.luchi@gmail.com> | 2015-01-24 17:01:40 -0200 |
---|---|---|
committer | Duda Dornelles <ddornell@thoughtworks.com> | 2015-01-24 17:01:40 -0200 |
commit | 2fb15ab3f6ed53434803791df9a38879e44b1195 (patch) | |
tree | 4ee91b0e560d5721a5ac725befd5a235e3dabc5a /web-ui/app | |
parent | cc2886f1346105a54f2b1182fa1f5d38214f9d0e (diff) |
#184 - not creating empty tags anymore
Diffstat (limited to 'web-ui/app')
-rw-r--r-- | web-ui/app/js/mail_view/ui/mail_view.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/web-ui/app/js/mail_view/ui/mail_view.js b/web-ui/app/js/mail_view/ui/mail_view.js index 66b33748..eb55dbd5 100644 --- a/web-ui/app/js/mail_view/ui/mail_view.js +++ b/web-ui/app/js/mail_view/ui/mail_view.js @@ -157,7 +157,9 @@ define( if (event.which === ENTER_KEY){ event.preventDefault(); - this.createNewTag(); + if (this.select('newTagInput').val() !== '') { + this.createNewTag(); + } } else if (event.which === ESC_KEY) { event.preventDefault(); this.addTagLoseFocus(); |