[backport] reset attachments on issue creation

stable
Juanfran 2016-02-05 14:23:55 +01:00
parent 2a42420856
commit c03f3e1337
2 changed files with 5 additions and 1 deletions

View File

@ -39,7 +39,9 @@ CreateIssueDirective = ($repo, $confirm, $rootscope, lightboxService, $loading,
$scope.attachments = Immutable.List()
$scope.$on "issueform:new", (ctx, project)->
attachmentsToAdd = Immutable.List()
form.reset()
resetAttachments()
$el.find(".tag-input").val("")
@ -69,6 +71,7 @@ CreateIssueDirective = ($repo, $confirm, $rootscope, lightboxService, $loading,
resetAttachments = () ->
attachmentsToAdd = Immutable.List()
$scope.attachments = Immutable.List()
$scope.addAttachment = (attachment) ->
attachmentsToAdd = attachmentsToAdd.push(attachment)

View File

@ -13,6 +13,7 @@
@extend %medium;
@extend %bold;
color: $grayer;
line-height: 36px;
padding: 0 1rem;
}
.options {