# HG changeset patch
# User hertzhaft
# Date 1299961335 -3600
# Node ID 44ee29f20791e13bf4d933a50c313eac461ea5da
# Parent 7ebdc106a61ace189d41df7919f8c667d10584fe
always detach img in embedded mode
diff -r 7ebdc106a61a -r 44ee29f20791 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 = $('
');