diff --git a/webadmin/src/js/index.js b/webadmin/src/js/index.js index c28eb19b9..d39fcb27c 100644 --- a/webadmin/src/js/index.js +++ b/webadmin/src/js/index.js @@ -370,8 +370,7 @@ app.directive('tagInput', function () { } }); element.bind('keydown', function (e) { - var key; - key = e.which; + var key = e.which; if (key === 9 || key === 13) { e.preventDefault(); } @@ -380,14 +379,20 @@ app.directive('tagInput', function () { } }); return element.bind('keyup', function (e) { - var key; - key = e.which; + var key = e.which; if (key === 9 || key === 13 || key === 188) { e.preventDefault(); return $scope.$apply('addTag()'); } }); }, - template: '
{{tag}}
×
' + template: + '
' + + '
' + + '{{tag}}' + + '
×
' + + '
' + + '' + + '
' }; });