diff options
author | Duda Dornelles <dudassdornelles@gmail.com> | 2015-01-27 16:26:01 -0200 |
---|---|---|
committer | Pixpoa pairing <pixpoapairing@pixelated-project.org> | 2015-01-27 16:26:01 -0200 |
commit | a211149d2a1bdf21b970cdff1bd5a31a9ecdadaf (patch) | |
tree | 01ee96303bb438e2acfeada4324f98dd1939f4fa /web-ui/app/js/mail_view | |
parent | 2f25e6429d9d846632314d093591ad413fac0d9e (diff) |
#184 not creating empty tags of any length (as opposed to only empty strings with len==0)
Diffstat (limited to 'web-ui/app/js/mail_view')
-rw-r--r-- | web-ui/app/js/mail_view/ui/mail_view.js | 2 |
1 files changed, 1 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 eb55dbd5..136b701c 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,7 @@ define( if (event.which === ENTER_KEY){ event.preventDefault(); - if (this.select('newTagInput').val() !== '') { + if (this.select('newTagInput').val().trim() !== '') { this.createNewTag(); } } else if (event.which === ESC_KEY) { |