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 = {
var formData = new FormData();
+ formData.append("onid", "43024");
+ formData.append("ontable", "pressrelease_boilerplate");
+
formData.append('returnHTML', 'NO');
if(crop){
if(typeof(file.mimetype) != 'undefined'){
formData.append('mimetype', file.mimetype);
}
+
+ formData.entries().forEach(function(pair) {
+ console.log(pair[0], pair[1]);
+ });
if(this.fireEvent('arrange', this, formData) != false){
this.xhr.send(formData);