Hide broken images MAR-162
authorJason Skomorowski <jason@indexdata.com>
Tue, 23 Jun 2015 19:18:45 +0000 (15:18 -0400)
committerJason Skomorowski <jason@indexdata.com>
Tue, 23 Jun 2015 19:18:45 +0000 (15:18 -0400)
src/templates/summary.handlebars

index 85b371d..1de5f15 100644 (file)
@@ -12,7 +12,7 @@ md-* - metadata fields passed through from backend
 }}
 {{#if md-thumburl}}
   <a class="mkws-field-thumb" href="#" onclick="{{detailClick}}">
-    <img src="{{md-thumburl.[0]}}"/>
+    <img src="{{md-thumburl.[0]}}" onerror="this.style.display='none'"/>
   </a>
 {{/if}}
 <div class="mkws-field-data">