fix #2053 - fix hide floppy in tags autocomplete

stable
Juanfran 2015-01-28 08:55:42 +01:00
parent 2ad0b9f490
commit 11069f44da
2 changed files with 7 additions and 4 deletions

View File

@ -138,6 +138,8 @@ LbTagLineDirective = ($rs, $template) ->
$scope.$apply -> $scope.$apply ->
$model.$setViewValue(tags) $model.$setViewValue(tags)
hideSaveButton()
deleteValue = (value) -> deleteValue = (value) ->
value = trim(value.toLowerCase()) value = trim(value.toLowerCase())
return if value.length == 0 return if value.length == 0
@ -153,7 +155,6 @@ LbTagLineDirective = ($rs, $template) ->
addValue(value) addValue(value)
resetInput() resetInput()
hideSaveButton()
removeInputLastCharacter = (input) => removeInputLastCharacter = (input) =>
inputValue = input.val() inputValue = input.val()
@ -288,6 +289,8 @@ TagLineDirective = ($rootScope, $repo, $rs, $confirm, $qqueue, $template) ->
$model.$setViewValue(model) $model.$setViewValue(model)
$repo.save(model).then(onSuccess, onError) $repo.save(model).then(onSuccess, onError)
hideSaveButton()
deleteValue = $qqueue.bindAdd (value) -> deleteValue = $qqueue.bindAdd (value) ->
value = trim(value.toLowerCase()) value = trim(value.toLowerCase())
return if value.length == 0 return if value.length == 0
@ -313,7 +316,6 @@ TagLineDirective = ($rootScope, $repo, $rs, $confirm, $qqueue, $template) ->
addValue(value) addValue(value)
resetInput() resetInput()
hideSaveButton()
removeInputLastCharacter = (input) => removeInputLastCharacter = (input) =>
inputValue = input.val() inputValue = input.val()

View File

@ -21,6 +21,9 @@
.ui-state-focus { .ui-state-focus {
background: $fresh-taiga; background: $fresh-taiga;
} }
li {
cursor: pointer;
}
} }
.ui-helper-hidden-accessible { .ui-helper-hidden-accessible {
@ -53,5 +56,3 @@
@extend %small; @extend %small;
} }
} }