# HG changeset patch # User hertzhaft # Date 1299969700 -3600 # Node ID e17507559d3548fc648512894b77d02c2269e60a # Parent 80cc227c1d504d9d139cd64f0a7c87839252dd93 hide arrows if not needed diff -r 80cc227c1d50 -r e17507559d35 client/digitallibrary/jquery/jquery-test-embedded.html --- a/client/digitallibrary/jquery/jquery-test-embedded.html Sat Mar 12 21:58:06 2011 +0100 +++ b/client/digitallibrary/jquery/jquery-test-embedded.html Sat Mar 12 23:41:40 2011 +0100 @@ -67,7 +67,8 @@ interactionMode : 'embedded', scalerBaseUrl : 'http://digilib.biblhertz.it/digilib04/servlet/Scaler', showRegionNumbers : false, - autoRegionLinks : true + autoRegionLinks : true, + buttonSettings : { 'embedded' : { buttonSets : [] } } }; var $div = $('div.digilib'); $div.digilib(opts); diff -r 80cc227c1d50 -r e17507559d35 client/digitallibrary/jquery/jquery.digilib.css --- a/client/digitallibrary/jquery/jquery.digilib.css Sat Mar 12 21:58:06 2011 +0100 +++ b/client/digitallibrary/jquery/jquery.digilib.css Sat Mar 12 23:41:40 2011 +0100 @@ -131,6 +131,7 @@ text-align: center; background-color: black; opacity: 0.08; + display: none; } div.arrow:hover { diff -r 80cc227c1d50 -r e17507559d35 client/digitallibrary/jquery/jquery.digilib.js --- a/client/digitallibrary/jquery/jquery.digilib.js Sat Mar 12 21:58:06 2011 +0100 +++ b/client/digitallibrary/jquery/jquery.digilib.js Sat Mar 12 23:41:40 2011 +0100 @@ -1117,6 +1117,8 @@ // size and show arrow overlays, called after scaler img is loaded var renderZoomArrows = function (data) { + if (!data.settings.zoomArrows) return; + if (isFullArea(data)) return; var $arrows = data.$arrows; var r = FULL_AREA.copy(); r.height = 0.05;