igorlino / elevatezoom-plus

Enhanced elevateZoom - A jQuery image zoom plugin
http://igorlino.github.io/elevatezoom-plus/
MIT License
162 stars 78 forks source link

On bootstrao modal the zoom effect is not working #38

Open jayantrawat opened 8 years ago

jayantrawat commented 8 years ago

The zoom effect is not working properly in bootstrap modal . the zoom window is not opening properly

`$('.qvpopup').click(function(se){
    var image = $('#qvfeaturedimg');
    var zoomConfig = {cursor: "crosshair"};
    var zoomActive = false;

        se.preventDefault();
        $('#quickview').on('shown.bs.modal', function() {
             zoomActive = !zoomActive;
            alert('start');
             if(zoomActive)
             {

                 image.ezPlus(zoomConfig);//initialise zoom
             }
             else
             {
                $.removeData(image, 'ezPlus');//remove zoom instance from image

                $('.zoomContainer').remove();// remove zoom container from DOM
              }

      });`

link of image you can see here how it is showing i don't know is it css issue of modal

you can check here scroll to down click on product tab and then hover on image and click on quick view button then popup will appear where you can see all the things

jayantrawat commented 8 years ago

Sorry it was my fault it is working fine now actually i was calling it twice so it was giving me error thanks for your plugin it is really awesome