Fixed tag input not adding current tag on blur

This commit is contained in:
Marcin Kurczewski 2014-09-20 09:09:28 +02:00
parent 57fb6da4b3
commit 4c75232a80
2 changed files with 3 additions and 2 deletions

2
TODO
View file

@ -3,8 +3,6 @@ first major release.
everything related to posts:
- uploads
- tag input: make tag of current text on input blur (e.g. user types
"tag" and submits the form, "tag" should appear on tag list)
- user shouldn't be able click form rows when upload is active
- fix thumbnails for files that are neither youtube or images

View file

@ -45,6 +45,9 @@ App.Controls.TagInput = function(
});
$input.unbind('blur').bind('blur', function(e) {
$wrapper.removeClass('focused');
var tag = $input.val();
addTag(tag);
$input.val('');
});
$input.unbind('paste').bind('paste', function(e) {