Minor fixes in tags directives
parent
5a73910a89
commit
6f34def133
|
@ -288,15 +288,15 @@ TagLineDirective = ($rootScope, $repo, $rs, $confirm) ->
|
|||
$scope.$apply ->
|
||||
$model.$setViewValue(tags)
|
||||
|
||||
autosaveModel = $scope.$eval($attrs.autosaveModel)
|
||||
if autosaveModel
|
||||
onSuccess = ->
|
||||
$rootScope.$broadcast("history:reload")
|
||||
onError = ->
|
||||
$confirm.notify("error")
|
||||
$scope.$apply ->
|
||||
autosaveModel.revert()
|
||||
$repo.save(autosaveModel).then(onSuccess, onError)
|
||||
autosaveModel = $scope.$eval($attrs.autosaveModel)
|
||||
if autosaveModel
|
||||
onSuccess = ->
|
||||
$rootScope.$broadcast("history:reload")
|
||||
onError = ->
|
||||
$confirm.notify("error")
|
||||
$scope.$apply ->
|
||||
autosaveModel.revert()
|
||||
$repo.save(autosaveModel).then(onSuccess, onError)
|
||||
|
||||
saveInputTag = () ->
|
||||
value = $el.find("input").val()
|
||||
|
@ -345,15 +345,15 @@ TagLineDirective = ($rootScope, $repo, $rs, $confirm) ->
|
|||
$scope.$apply ->
|
||||
$model.$setViewValue(tags)
|
||||
|
||||
autosaveModel = $scope.$eval($attrs.autosaveModel)
|
||||
if autosaveModel
|
||||
onSuccess = ->
|
||||
$rootScope.$broadcast("history:reload")
|
||||
onError = ->
|
||||
$confirm.notify("error")
|
||||
$scope.$apply ->
|
||||
autosaveModel.revert()
|
||||
$repo.save(autosaveModel).then(onSuccess, onError)
|
||||
autosaveModel = $scope.$eval($attrs.autosaveModel)
|
||||
if autosaveModel
|
||||
onSuccess = ->
|
||||
$rootScope.$broadcast("history:reload")
|
||||
onError = ->
|
||||
$confirm.notify("error")
|
||||
$scope.$apply ->
|
||||
autosaveModel.revert()
|
||||
$repo.save(autosaveModel).then(onSuccess, onError)
|
||||
|
||||
bindOnce $scope, "project", (project) ->
|
||||
if not isEditable()
|
||||
|
|
|
@ -31,7 +31,7 @@ block content
|
|||
a.icon.icon-arrow-left(ng-show="previousUrl", tg-bo-href="previousUrl", title="previous issue")
|
||||
a.icon.icon-arrow-right(ng-show="nextUrl", tg-bo-href="nextUrl", title="next issue")
|
||||
|
||||
div(tg-tag-line, autosave-model="issue", ng-model="issue.tags", required-perm="modify_issue")
|
||||
div.tags-block(tg-tag-line, autosave-model="issue", ng-model="issue.tags", required-perm="modify_issue")
|
||||
|
||||
section.duty-content.wysiwyg(tg-editable-description, ng-model="issue", required-perm="modify_issue")
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ block content
|
|||
a.icon.icon-arrow-left(ng-show="previousUrl", tg-bo-href="previousUrl", title="previous task")
|
||||
a.icon.icon-arrow-right(ng-show="nextUrl", tg-bo-href="nextUrl", title="next task")
|
||||
|
||||
div(tg-tag-line, autosave-model="task", ng-model="task.tags", required-perm="modify_task")
|
||||
div.tags-block(tg-tag-line, autosave-model="task", ng-model="task.tags", required-perm="modify_task")
|
||||
|
||||
section.duty-content.wysiwyg(tg-editable-description, ng-model="task", required-perm="modify_task")
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ block content
|
|||
title="previous user story")
|
||||
a.icon.icon-arrow-right(ng-show="nextUrl", tg-bo-href="nextUrl", title="next user story")
|
||||
|
||||
div(tg-tag-line, autosave-model="us", ng-model="us.tags", required-perm="modify_us")
|
||||
div.tags-block(tg-tag-line, autosave-model="us", ng-model="us.tags", required-perm="modify_us")
|
||||
|
||||
section.duty-content.wysiwyg(tg-editable-description, ng-model="us", required-perm="modify_us")
|
||||
|
||||
|
|
|
@ -30,7 +30,6 @@
|
|||
.tags-block {
|
||||
.tags-container {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
}
|
||||
input {
|
||||
padding: .4rem;
|
||||
|
@ -43,7 +42,6 @@
|
|||
}
|
||||
.add-tag {
|
||||
color: $gray-light;
|
||||
vertical-align: initial;
|
||||
&:hover {
|
||||
color: $fresh-taiga;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue