Fixed tag input not adding current tag on blur
This commit is contained in:
parent
57fb6da4b3
commit
4c75232a80
2 changed files with 3 additions and 2 deletions
2
TODO
2
TODO
|
@ -3,8 +3,6 @@ first major release.
|
||||||
|
|
||||||
everything related to posts:
|
everything related to posts:
|
||||||
- uploads
|
- 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
|
- user shouldn't be able click form rows when upload is active
|
||||||
- fix thumbnails for files that are neither youtube or images
|
- fix thumbnails for files that are neither youtube or images
|
||||||
|
|
||||||
|
|
|
@ -45,6 +45,9 @@ App.Controls.TagInput = function(
|
||||||
});
|
});
|
||||||
$input.unbind('blur').bind('blur', function(e) {
|
$input.unbind('blur').bind('blur', function(e) {
|
||||||
$wrapper.removeClass('focused');
|
$wrapper.removeClass('focused');
|
||||||
|
var tag = $input.val();
|
||||||
|
addTag(tag);
|
||||||
|
$input.val('');
|
||||||
});
|
});
|
||||||
|
|
||||||
$input.unbind('paste').bind('paste', function(e) {
|
$input.unbind('paste').bind('paste', function(e) {
|
||||||
|
|
Loading…
Reference in a new issue