crop : function()
{
+ console.log("crop");
if(!this.canvasLoaded){
return;
}
}
context.scale(scale, scale);
-
var sx = Math.min(this.canvasEl.width - this.thumbEl.getWidth(), this.thumbEl.getLeft(true) - this.previewEl.getLeft(true));
var sy = Math.min(this.canvasEl.height - this.thumbEl.getHeight(), this.thumbEl.getTop(true) - this.previewEl.getTop(true));
}
this.cropData = canvas.toDataURL(this.cropType);
+
+ console.log("cropData");
+ console.log(this.cropData);
if(this.fireEvent('crop', this, this.cropData) !== false){
this.process(this.file, this.cropData);
process : function(file, crop)
{
+ console.log(process);
if(this.loadMask){
this.maskEl.mask(this.loadingText);
}
file.xhr = this.xhr;
+ console.log("METHOD:" + this.method);
+ console.log("URL: " + this.url);
this.xhr.open(this.method, this.url, true);
var headers = {