mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Fixed tag input not adding current tag on blur
This commit is contained in:
2
TODO
2
TODO
@ -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
|
||||
|
||||
|
@ -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) {
|
||||
|
Reference in New Issue
Block a user