2013/05/16

JCrop - Fixing strange bug in Safari and Chrom

This is ok in Firefox, but somehow it works weird in Chrome.

$.Jcrop($('#cropbox'),options);

Doing below changes. All work fine in IE, Firefox, Safari, and Chrome!

$('#cropbox').Jcrop(options); 
var jcrop = $('#cropbox').data('Jcrop'); 
jcrop.setOptions(newOptions);

Good to go forward!

沒有留言: