disallow spaces in tags
This commit is contained in:
parent
09aaf72e5a
commit
1db62901be
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ class AutoCompleteTheme extends Themelet {
|
|||
$('.ui-autocomplete-input').keydown(function(e) {
|
||||
var keyCode = e.keyCode || e.which;
|
||||
|
||||
if (keyCode == 9) {
|
||||
if (keyCode == 9 || keyCode == 32) {
|
||||
e.preventDefault();
|
||||
|
||||
var tag = $('.tagit-autocomplete:not([style*=\"display: none\"]) > li:first').text();
|
||||
|
|
Reference in a new issue