changeset 871:e17507559d35 jquery

hide arrows if not needed
author hertzhaft
date Sat, 12 Mar 2011 23:41:40 +0100
parents 80cc227c1d50
children d46706f0eede
files client/digitallibrary/jquery/jquery-test-embedded.html client/digitallibrary/jquery/jquery.digilib.css client/digitallibrary/jquery/jquery.digilib.js
diffstat 3 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
--- 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 {
--- 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;