Roo/bootstrap/UploadCropbox.js
authoredward <edward@roojs.com>
Mon, 14 Mar 2016 04:18:32 +0000 (12:18 +0800)
committeredward <edward@roojs.com>
Mon, 14 Mar 2016 04:18:32 +0000 (12:18 +0800)
Roo/bootstrap/UploadCropbox.js

index 69f0614..7dcb8eb 100644 (file)
@@ -973,7 +973,9 @@ Roo.extend(Roo.bootstrap.UploadCropbox, Roo.bootstrap.Component,  {
         
         this.cropData = canvas.toDataURL(this.cropType);
         
-        this.fireEvent('crop', this, this.cropData);
+        if(this.fireEvent('crop', this, this.cropData) !== false){
+            this.process(this.file, this.cropData);
+        }
         
         return;