function updateCoords(c)
{
	//alert(parseInt(jQuery("#ratioforcrop").val()));
	ratio=1;
	if (parseInt(jQuery("#ratioforcrop").val()) > 0) ratio = parseInt(jQuery("#ratioforcrop").val());
	//console.log(ratio);
	jQuery('#x').val(Math.ceil(c.x * ratio));
	jQuery('#y').val(Math.ceil(c.y * ratio));
	jQuery('#x2').val(Math.ceil(c.x2 * ratio));
	jQuery('#y2').val(Math.ceil(c.y2 * ratio));
	jQuery('#w').val(Math.ceil(c.w * ratio));
	jQuery('#h').val(Math.ceil(c.h * ratio));
}
/* Update fields that store new size */
Update fields that store new size
Update fields that store new size
function updateCoords(c)
{
	ratio=1;
	if (parseInt(jQuery("#ratioforcrop").val()) > 0) ratio = parseInt(jQuery("#ratioforcrop").val());
	jQuery('#x').val(Math.ceil(c.x * ratio));
	jQuery('#y').val(Math.ceil(c.y * ratio));
	jQuery('#x2').val(Math.ceil(c.x2 * ratio));
	jQuery('#y2').val(Math.ceil(c.y2 * ratio));
	jQuery('#w').val(Math.ceil(c.w * ratio));
	jQuery('#h').val(Math.ceil(c.h * ratio));
}
function updateCoords ( c ) { ratio = 1 ; if ( parseInt ( jQuery ( "#ratioforcrop" ) . val ( ) ) > 0 ) ratio = parseInt ( jQuery ( "#ratioforcrop" ) . val ( ) ) ; jQuery ( '#x' ) . val ( Math . ceil ( c . x * ratio ) ) ; jQuery ( '#y' ) . val ( Math . ceil ( c . y * ratio ) ) ; jQuery ( '#x2' ) . val ( Math . ceil ( c . x2 * ratio ) ) ; jQuery ( '#y2' ) . val ( Math . ceil ( c . y2 * ratio ) ) ; jQuery ( '#w' ) . val ( Math . ceil ( c . w * ratio ) ) ; jQuery ( '#h' ) . val ( Math . ceil ( c . h * ratio ) ) ; }
Update fields that store new size
Update fields that store new size
//alert(parseInt(jQuery("#ratioforcrop").val())); //console.log(ratio);