diff --git a/app/coffee/modules/common/tags.coffee b/app/coffee/modules/common/tags.coffee index cb503aa1..0b8c8dfb 100644 --- a/app/coffee/modules/common/tags.coffee +++ b/app/coffee/modules/common/tags.coffee @@ -286,10 +286,11 @@ TagLineDirective = ($rootScope, $repo, $rs, $confirm, $qqueue, $template, $compi $confirm.notify("error") model.revert() $model.$setViewValue(model) - $repo.save(model).then(onSuccess, onError) hideSaveButton() + return $repo.save(model).then(onSuccess, onError) + deleteValue = $qqueue.bindAdd (value) -> value = trim(value.toLowerCase()) return if value.length == 0