this.startScale = this.scale;
this.scale = (e.getWheelDelta() == 1) ? (this.scale + 1) : (this.scale - 1);
- console.log("START SCALE:" . startScale);
- console.log("TEST SCALE: " . startScale);
+ console.log("START SCALE:" + this.startScale);
+ console.log("TEST SCALE: " + this.scale);
if(!this.zoomable()){
this.scale = this.startScale;
return;
}
- console.log("END SCALE: " . endScale);
+ console.log("END SCALE: " + this.scale);
this.draw();
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 = {
xhrOnLoad : function(xhr)
{
+ console.log("xhrOnLoad");
if(this.loadMask){
this.maskEl.unmask();
}
return;
}
+ console.log(response);
var response = Roo.decode(xhr.responseText);
if(!response.success){