disallow spaces in tags

This commit is contained in:
Daku 2016-06-18 07:41:59 +01:00
parent 09aaf72e5a
commit 1db62901be

View file

@ -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();