1 // setup the callback function
2 function onEndCrop( coords, dimensions ) {
3 $( 'x1' ).value = coords.x1;
4 $( 'y1' ).value = coords.y1;
5 $( 'x2' ).value = coords.x2;
6 $( 'y2' ).value = coords.y2;
7 $( 'width' ).value = dimensions.width;
8 $( 'height' ).value = dimensions.height;
26 if( typeof(dump) != 'function' ) {
27 Debug.init(true, '/');
29 function dump( msg ) {
32 } else dump( '---------------------------------------\n' );