From ef77d01f88b142440d728619e38e19ffdd63c707 Mon Sep 17 00:00:00 2001 From: Juanfran Date: Fri, 5 Feb 2016 14:23:55 +0100 Subject: [PATCH] reset attachments on issue creation --- app/coffee/modules/issues/lightboxes.coffee | 3 ++- app/modules/attachments/attachments.scss | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/coffee/modules/issues/lightboxes.coffee b/app/coffee/modules/issues/lightboxes.coffee index 298ca7f6..3be9bb6b 100644 --- a/app/coffee/modules/issues/lightboxes.coffee +++ b/app/coffee/modules/issues/lightboxes.coffee @@ -41,7 +41,7 @@ CreateIssueDirective = ($repo, $confirm, $rootscope, lightboxService, $loading, $scope.$on "issueform:new", (ctx, project)-> form.reset() - attachmentsToAdd = Immutable.List() + resetAttachments() $el.find(".tag-input").val("") @@ -71,6 +71,7 @@ CreateIssueDirective = ($repo, $confirm, $rootscope, lightboxService, $loading, resetAttachments = () -> attachmentsToAdd = Immutable.List() + $scope.attachments = Immutable.List() $scope.addAttachment = (attachment) -> attachmentsToAdd = attachmentsToAdd.push(attachment) diff --git a/app/modules/attachments/attachments.scss b/app/modules/attachments/attachments.scss index e8f12d61..59e2336d 100644 --- a/app/modules/attachments/attachments.scss +++ b/app/modules/attachments/attachments.scss @@ -12,6 +12,7 @@ @extend %medium; @extend %bold; color: $grayer; + line-height: 36px; padding: 0 1rem; } .options {