reset attachments on issue creation

stable
Juanfran 2016-02-05 14:23:55 +01:00
parent ce4d1dbcd7
commit ef77d01f88
2 changed files with 3 additions and 1 deletions

View File

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

View File

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