samtiria / nextgen-gallery

Automatically exported from code.google.com/p/nextgen-gallery
0 stars 0 forks source link

Edit thumb causes variousproblems on modal window #258

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The current solution of jCrop inside a modal windwos (thickbox) ha some 
problems when thewindow is opened a couple of time. Solution could be a 
iframe window or some other events (not document ready() ).

Original issue reported on code.google.com by alex.cologne on 30 Dec 2009 at 11:37

GoogleCodeExporter commented 8 years ago
In the forums of jCrop : 

http://code.google.com/p/jcrop/issues/detail?id=21
http://code.google.com/p/jcrop/issues/detail?id=22

tested in edit-thumbnail.php :

    jQuery(document).ready(function(){
        jQuery("#imageToEdit").live("click", function(){  
            jQuery(this).Jcrop({
                onChange: showPreview,
                onSelect: showPreview,
                aspectRatio: <?php echo round($WidthHtmlPrev/
$HeightHtmlPrev, 3) ?>
            });
        });
    });

Better for IE, but no real solution when you open the window a couple of times

Original comment by alex.cologne on 30 Dec 2009 at 11:38