From ee99e20c823fc9cf075ad7091a109dab01131947 Mon Sep 17 00:00:00 2001 From: Juanfran Date: Fri, 8 May 2015 08:49:07 +0200 Subject: [PATCH] remove image with it doesn't exist --- .../profile-timeline-attachment.directive.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/modules/profile/profile-timeline-attachment/profile-timeline-attachment.directive.coffee b/app/modules/profile/profile-timeline-attachment/profile-timeline-attachment.directive.coffee index ae2edded..e733a089 100644 --- a/app/modules/profile/profile-timeline-attachment/profile-timeline-attachment.directive.coffee +++ b/app/modules/profile/profile-timeline-attachment/profile-timeline-attachment.directive.coffee @@ -18,6 +18,8 @@ ProfileTimelineAttachmentDirective = (template, $compile) -> el.html(templateHtml) $compile(el.contents())(scope) + el.find("img").error () -> @.remove() + return { link: link scope: {