Mercurial > hg > digilib
changeset 1471:cc8a97739121
always setup bird's eye when autoBirdDiv is set
author | hertzhaft |
---|---|
date | Wed, 06 Jan 2016 18:57:59 +0100 |
parents | bd55d6ab099f |
children | 56d69da93849 |
files | webapp/src/main/webapp/jquery/jquery.digilib.birdseye.js |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/webapp/src/main/webapp/jquery/jquery.digilib.birdseye.js Wed Dec 30 16:55:40 2015 +0100 +++ b/webapp/src/main/webapp/jquery/jquery.digilib.birdseye.js Wed Jan 06 18:57:59 2016 +0100 @@ -102,13 +102,16 @@ $data.on('changeZoomArea', handleChangeZoomArea); }; - var handleSetup = function (evt) { console.debug("birdseye: handleSetup"); var data = this; + var visible = data.settings.isBirdDivVisible; + var auto = data.settings.autoBirdDiv; // bird's eye view creation - if (data.settings.isBirdDivVisible) { + if (visible || auto) { setupBirdDiv(data); + } + if (visible) { data.$birdDiv.show(); } };