# HG changeset patch # User hertzhaft # Date 1452103079 -3600 # Node ID cc8a97739121c04fe4036b4c28c52bedf80fc4ae # Parent bd55d6ab099f66e10cdd75dd891077a8500648a7 always setup bird's eye when autoBirdDiv is set diff -r bd55d6ab099f -r cc8a97739121 webapp/src/main/webapp/jquery/jquery.digilib.birdseye.js --- 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(); } };