mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-01 03:09:22 +02:00
semicolon
This commit is contained in:
@@ -34,7 +34,6 @@ define('composer/tags', function() {
|
||||
},
|
||||
select: function(event, ui) {
|
||||
// when autocomplete is selected from the dropdown simulate a enter key down to turn it into a tag
|
||||
// http://stackoverflow.com/a/3276819/583363
|
||||
triggerEnter(input);
|
||||
}
|
||||
});
|
||||
@@ -42,10 +41,11 @@ define('composer/tags', function() {
|
||||
input.attr('tabIndex', tagEl.attr('tabIndex'));
|
||||
input.on('blur', function() {
|
||||
triggerEnter(input);
|
||||
})
|
||||
});
|
||||
};
|
||||
|
||||
function triggerEnter(input) {
|
||||
// http://stackoverflow.com/a/3276819/583363
|
||||
var e = jQuery.Event('keydown');
|
||||
e.which = 13;
|
||||
e.keyCode = 13;
|
||||
|
||||
Reference in New Issue
Block a user