# HG changeset patch # User robcast # Date 1303807450 -7200 # Node ID 1b627b5c9fad5c2ed7b50e1045456e7e762b1a26 # Parent 6c43597b0b088ee4f0fec96deec00063efd00247# Parent 76b01d51add41c76e45425b0f97aee347f81eec8 merge from jquery branch diff -r 6c43597b0b08 -r 1b627b5c9fad client/src/main/webapp/jquery/jquery-test-embedded.html diff -r 6c43597b0b08 -r 1b627b5c9fad client/src/main/webapp/jquery/jquery.digilib.css --- a/client/src/main/webapp/jquery/jquery.digilib.css Thu Apr 21 10:58:31 2011 +0200 +++ b/client/src/main/webapp/jquery/jquery.digilib.css Tue Apr 26 10:44:10 2011 +0200 @@ -59,11 +59,13 @@ div.digilib div.region { position: absolute; background-color: red; - opacity: 0.3; + opacity: 0.3; + filter:progid:DXImageTransform.Microsoft.Alpha(opacity=30); } div.digilib div.region:hover { opacity: 0.5; + filter:progid:DXImageTransform.Microsoft.Alpha(opacity=50); } div.digilib div.region { diff -r 6c43597b0b08 -r 1b627b5c9fad client/src/main/webapp/jquery/jquery.digilib.js --- a/client/src/main/webapp/jquery/jquery.digilib.js Thu Apr 21 10:58:31 2011 +0200 +++ b/client/src/main/webapp/jquery/jquery.digilib.js Tue Apr 26 10:44:10 2011 +0200 @@ -1378,7 +1378,13 @@ // update scaler image transform var updateImgTrafo = function (data) { var $img = data.$img; - if ($img != null && $img.get(0).complete) { + if ($img == null) + return; + var image = $img.get(0); + var imgLoaded = $.browser.msie + ? image.width > 0 + : image.complete; + if (imgLoaded) { // create Transform from current zoomArea and image size data.imgTrafo = getImgTrafo($img, data.zoomArea, data.settings.rot, data.scalerFlags.hmir, data.scalerFlags.vmir,