Mercurial > hg > digilib-old
changeset 687:97c01b911754 jquery
fix zoom bug introduced with last change
author | hertzhaft |
---|---|
date | Wed, 26 Jan 2011 20:37:45 +0100 |
parents | 86c4174977f1 |
children | 0235a8e63818 7c8d5bfc5243 |
files | client/digitallibrary/jquery/jquery.digilib.js |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/client/digitallibrary/jquery/jquery.digilib.js Wed Jan 26 18:37:03 2011 +0100 +++ b/client/digitallibrary/jquery/jquery.digilib.js Wed Jan 26 20:37:45 2011 +0100 @@ -678,9 +678,6 @@ scalerUrl = getScalerUrl(data); }; } - // setup image load handler before setting the src attribute (IE bug) - $img.load(scalerImgLoadedHandler(data)); - $img.attr('src', scalerUrl); // create new html $elem.empty(); // TODO: should we keep stuff for customization? var $scaler = $('<div class="scaler"/>'); @@ -689,6 +686,9 @@ $img.addClass('pic'); data.$scaler = $scaler; data.$img = $img; + // setup image load handler before setting the src attribute (IE bug) + $img.load(scalerImgLoadedHandler(data)); + $img.attr('src', scalerUrl); }; // creates HTML structure for buttons in elem @@ -777,7 +777,7 @@ $birdImg.load(birdImgLoadedHandler(data)); $birdImg.attr('src', birdUrl); if (data.settings.isBirdDivVisible) { - $birdDiv.fadeIn(); + $birdDiv.show(); }; birdZoom(data); };