Author: scottbw
Date: Thu Jan 12 11:05:23 2012
New Revision: 1230487

URL: http://svn.apache.org/viewvc?rev=1230487&view=rev
Log:
Added an onerror tag to the img tag in the Widget Browse widget so that missing 
images aren't displayed in the item detail

Modified:
    
incubator/wookie/trunk/widgets/templates/widgets/adminWidgets/widgetBrowse/item_template.html

Modified: 
incubator/wookie/trunk/widgets/templates/widgets/adminWidgets/widgetBrowse/item_template.html
URL: 
http://svn.apache.org/viewvc/incubator/wookie/trunk/widgets/templates/widgets/adminWidgets/widgetBrowse/item_template.html?rev=1230487&r1=1230486&r2=1230487&view=diff
==============================================================================
--- 
incubator/wookie/trunk/widgets/templates/widgets/adminWidgets/widgetBrowse/item_template.html
 (original)
+++ 
incubator/wookie/trunk/widgets/templates/widgets/adminWidgets/widgetBrowse/item_template.html
 Thu Jan 12 11:05:23 2012
@@ -1,7 +1,7 @@
 <div class='result' data-role='collapsible' wid='${ID}'>
   <h3>${TITLE}</h3>
   <div class='detail'>
-    <img width=32 height=32 alt='icon' src='${ICON}'/>
+    <img width=32 height=32 alt='icon' src='${ICON}' 
onerror='this.onerror=null;$(this).hide()'/>
     <p>${DESCRIPTION}</p>
     <p>Author: ${AUTHOR}</p>
   </div>


Reply via email to