Mercurial > hg > digilib-old
changeset 1013:ae419ec528f1
avoid infinite update event loop
author | hertzhaft |
---|---|
date | Sat, 18 Feb 2012 17:13:11 +0100 |
parents | dc09bccf8357 |
children | 3441e22e2233 |
files | webapp/src/main/webapp/jquery/jquery.digilib.birdseye.js |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/webapp/src/main/webapp/jquery/jquery.digilib.birdseye.js Sat Feb 18 17:10:24 2012 +0100 +++ b/webapp/src/main/webapp/jquery/jquery.digilib.birdseye.js Sat Feb 18 17:13:11 2012 +0100 @@ -177,7 +177,9 @@ // create Transform from current area and picsize data.birdTrafo = digilib.fn.getImgTrafo(data.$birdImg, FULL_AREA); // update display (zoom area indicator) - $(data).trigger('update'); + if (data.settings.isBirdDivVisible) { + renderBirdArea(data); + } }; };