changeset 739:922c74a7b935 jquery

busy cursor while loading doesn't work (for me)
author robcast
date Wed, 02 Feb 2011 14:41:38 +0100
parents b4460f0a540d
children 95987594a1b0
files client/digitallibrary/jquery/jquery.digilib.js
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/client/digitallibrary/jquery/jquery.digilib.js	Wed Feb 02 14:17:52 2011 +0100
+++ b/client/digitallibrary/jquery/jquery.digilib.js	Wed Feb 02 14:41:38 2011 +0100
@@ -859,7 +859,6 @@
         data.$img = $img;
         // setup image load handler before setting the src attribute (IE bug)
         $img.load(scalerImgLoadedHandler(data));
-        $scaler.css('cursor', 'wait');
         $img.attr('src', scalerUrl);
     };
 
@@ -1096,7 +1095,6 @@
         return function () {
             var $img = $(this);
             var $scaler = data.$scaler;
-            console.debug("img loaded! this=", this, " data=", data);
             // create Transform from current area and picsize
             data.imgTrafo = getImgTrafo($img, data.zoomArea,
                     data.settings.rot, data.scalerFlags.hmir, data.scalerFlags.vmir);
@@ -1107,7 +1105,6 @@
             imgRect.adjustDiv($scaler);
             // show image in case it was hidden (for example in zoomDrag)
             $img.css('visibility', 'visible');
-            $scaler.css('cursor', 'auto');
             // display marks
             renderMarks(data);
             // TODO: digilib.showArrows(); // show arrow overlays for zoom navigation
@@ -1375,9 +1372,7 @@
 
         // mouseup handler: reload zoomed image in new position
         var dragEnd = function (evt) {
-            $scaler.css({
-                'cursor' : 'auto'
-                });
+            $scaler.css('cursor', 'auto');
             $document.unbind("mousemove.dlZoomDrag", dragMove);
             $document.unbind("mouseup.dlZoomDrag", dragEnd);
             if (delta == null || delta.distance() < 2) {