roojs-core.js
[roojs1] / roojs-ui-debug.js
index b37e1ee..dde6e90 100644 (file)
@@ -44001,15 +44001,19 @@ Roo.extend(Roo.dialog.UploadCropbox, Roo.Component,  {
         this.imageEl.OriginWidth = this.imageEl.naturalWidth || this.imageEl.width;
         this.imageEl.OriginHeight = this.imageEl.naturalHeight || this.imageEl.height;
 
+        var _this = this;
+
         if(this.imageEl.OriginWidth < this.minWidth) {
+            
             Roo.Msg.show({
                 title: 'Error',
                 msg: "Image width should be at least 720",
                 buttons: {ok : true},
                 fn: function(res) {
-                    this.selectorEl.dom.click();
+                    _this.selectorEl.dom.click();
                 }
             });
+            return;
         }
 
         if(this.fireEvent('loadcanvas', this, this.imageEl) != false){