# HG changeset patch # User hertzhaft # Date 1296464749 -3600 # Node ID 3da6db751448343fe8afc23af23e09d801072798 # Parent d6d486fe44c20162cdef777584c3c6a7eff17b49 change birdview along with scalerUrl in embedded mode diff -r d6d486fe44c2 -r 3da6db751448 client/digitallibrary/jquery/jquery.digilib.js --- a/client/digitallibrary/jquery/jquery.digilib.js Sun Jan 30 22:06:45 2011 +0100 +++ b/client/digitallibrary/jquery/jquery.digilib.js Mon Jan 31 10:05:49 2011 +0100 @@ -238,6 +238,8 @@ // dimensions of bird's eye div 'birdDivWidth' : 200, 'birdDivHeight' : 200, + // parameters used by bird's eye div + 'birdDivParams' : ['fn','pn','dw','dh'], // style of the zoom area indicator in the bird's eye div 'birdIndicatorStyle' : {'border' : '2px solid #ff0000' }, // style of zoom area "rubber band" @@ -784,7 +786,9 @@ data.$img.attr('src', url); // set scaler div size explicitly in case $img is hidden (for zoomDrag) $imgRect = geom.rectangle(data.$img); - $imgRect.adjustDiv(data.$scaler); + $imgRect.adjustDiv(data.$scaler); + // load new bird img (in case the scalerUrl has changed, like in gotopage) + showBirdDiv(data); } }; @@ -912,15 +916,6 @@ // creates HTML structure for the bird's eye view in elem var setupBirdDiv = function (data) { var $elem = data.$elem; - var settings = data.settings; - // use only the relevant parameters - var keys = ['fn','pn','dw','dh']; - var birdDivOptions = { - dw : settings.birdDivWidth, - dh : settings.birdDivHeight - }; - var birdSettings = $.extend({}, settings, birdDivOptions); - var birdUrl = settings.scalerBaseUrl + '?' + getParamString(birdSettings, keys); // the bird's eye div var $birdDiv = $('