# HG changeset patch # User hertzhaft # Date 1299961335 -3600 # Node ID a135f590275dfa5c6b5d88b7c7e63485a5fc0d55 # Parent 34b20eec036b254406f6e2e2b646fb8f9ac9fbf4 always detach img in embedded mode diff -r 34b20eec036b -r a135f590275d client/digitallibrary/jquery/jquery.digilib.js --- a/client/digitallibrary/jquery/jquery.digilib.js Wed Mar 09 00:39:17 2011 +0100 +++ b/client/digitallibrary/jquery/jquery.digilib.js Sat Mar 12 21:22:15 2011 +0100 @@ -980,12 +980,14 @@ scalerUrl = getScalerUrl(data); $img = $elem.find('img'); if ($img.length > 0) { - oldUrl = $img.attr('src'); - if (oldUrl === scalerUrl) { - console.debug("img detach:", $img); - $img.detach(); - } else { - $img = $(''); + //oldUrl = $img.attr('src'); + //if (oldUrl === scalerUrl) { + // console.debug("img detach:", $img); + // $img.detach(); + //} else { + // $img = $(''); + // keep title, alt etc. attributes (src gets changed anyway) + $img.detach(); } } else { $img = $('');