New: Add patch from meos to resize images

This commit is contained in:
Laurent Destailleur
2010-02-21 01:45:58 +00:00
parent 8e675a9c01
commit ae3cfce7cc
18 changed files with 1746 additions and 54 deletions

View File

@@ -0,0 +1,29 @@
/*
* http://deepliquid.com/content/Jcrop.html
*/
jQuery(function() {
jQuery('#cropbox').Jcrop({
onSelect: updateCoords,
onChange: updateCoords
});
});
function updateCoords(c)
{
$('#x').val(c.x);
$('#y').val(c.y);
$('#x2').val(c.x2);
$('#y2').val(c.y2);
$('#w').val(c.w);
$('#h').val(c.h);
};
function checkCoords()
{
if (parseInt($('#w').val())) return true;
alert('Please select a crop region then press submit.');
return false;
};