From 11069f44dac7de9edc95c55a2923eb6f1143c4a6 Mon Sep 17 00:00:00 2001 From: Juanfran Date: Wed, 28 Jan 2015 08:55:42 +0100 Subject: [PATCH] fix #2053 - fix hide floppy in tags autocomplete --- app/coffee/modules/common/tags.coffee | 6 ++++-- app/styles/components/tag.scss | 5 +++-- 2 files changed, 7 insertions(+), 4 deletions(-) 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; } } - -