remove image with it doesn't exist
parent
1687bde95c
commit
ee99e20c82
|
@ -18,6 +18,8 @@ ProfileTimelineAttachmentDirective = (template, $compile) ->
|
|||
el.html(templateHtml)
|
||||
$compile(el.contents())(scope)
|
||||
|
||||
el.find("img").error () -> @.remove()
|
||||
|
||||
return {
|
||||
link: link
|
||||
scope: {
|
||||
|
|
Loading…
Reference in New Issue