diff --git a/app/coffee/modules/common/tags.coffee b/app/coffee/modules/common/tags.coffee index 6ff2f700..5707c490 100644 --- a/app/coffee/modules/common/tags.coffee +++ b/app/coffee/modules/common/tags.coffee @@ -138,6 +138,8 @@ LbTagLineDirective = ($rs, $template) -> $scope.$apply -> $model.$setViewValue(tags) + hideSaveButton() + deleteValue = (value) -> value = trim(value.toLowerCase()) return if value.length == 0 @@ -153,7 +155,6 @@ LbTagLineDirective = ($rs, $template) -> addValue(value) resetInput() - hideSaveButton() removeInputLastCharacter = (input) => inputValue = input.val() @@ -288,6 +289,8 @@ TagLineDirective = ($rootScope, $repo, $rs, $confirm, $qqueue, $template) -> $model.$setViewValue(model) $repo.save(model).then(onSuccess, onError) + hideSaveButton() + deleteValue = $qqueue.bindAdd (value) -> value = trim(value.toLowerCase()) return if value.length == 0 @@ -313,7 +316,6 @@ TagLineDirective = ($rootScope, $repo, $rs, $confirm, $qqueue, $template) -> addValue(value) resetInput() - hideSaveButton() removeInputLastCharacter = (input) => inputValue = input.val() diff --git a/app/styles/components/tag.scss b/app/styles/components/tag.scss index 41ea7899..4696b407 100644 --- a/app/styles/components/tag.scss +++ b/app/styles/components/tag.scss @@ -21,6 +21,9 @@ .ui-state-focus { background: $fresh-taiga; } + li { + cursor: pointer; + } } .ui-helper-hidden-accessible { @@ -53,5 +56,3 @@ @extend %small; } } - -