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