Ignore:
Timestamp:
2022-02-01T11:54:46+13:00 (2 years ago)
Author:
cstephen
Message:

Migrate to using jQuery3 and jQuery-UI-1.13.2; and integrate cookie consent manager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/js/documentbasket/featuredimagezoomer.js

    r24510 r36027  
    176176            var imgcoords=getcoords()
    177177            $statusdiv.css({left:imgcoords.left+w/2-$statusdiv.width()/2, top:imgcoords.top+h/2-$statusdiv.height()/2, visibility:'visible'})
    178             $bigimage.bind('loadevt', function(){ //magnified image ONLOAD event function (to be triggered later)
     178            $bigimage.on('loadevt', function(){ //magnified image ONLOAD event function (to be triggered later)
    179179                $img.css({opacity:1}) //restore thumb image opacity
    180180                $statusdiv.empty().css({border:'1px solid black', background:'#C0C0C0', padding:'4px', font:'bold 13px Arial', opacity:0.8}).hide().removeClass('preloadevt');
     
    203203                }).css({cursor: fiz.magnifycursor});
    204204                if (setting.zoomrange && setting.zoomrange[1]>setting.zoomrange[0]){ //if zoom range enabled
    205                     $tracker.bind('DOMMouseScroll mousewheel', function(e){
     205                    $tracker.on('DOMMouseScroll mousewheel', function(e){
    206206                        fiz.magnifyimage($tracker, e, setting.zoomrange);
    207207                        e.preventDefault();
     
    213213            }
    214214            else{
    215                 $bigimage.bind('load', function(){$bigimage.trigger('loadevt')})
     215                $bigimage.on('load', function(){$bigimage.trigger('loadevt')})
    216216            }
    217217        })
Note: See TracChangeset for help on using the changeset viewer.