examples/dialog/test-2.js
authorleon <leon@roojs.com>
Tue, 12 Jul 2022 03:14:07 +0000 (11:14 +0800)
committerleon <leon@roojs.com>
Tue, 12 Jul 2022 03:14:07 +0000 (11:14 +0800)
examples/dialog/test-2.js

index 1a01b0b..9fa6dc2 100644 (file)
@@ -45,18 +45,18 @@ var uploadCropbox = {
                                 },
                                 loadcanvas : function (_self, imageEl)
                                 {
-                                    // if(imageEl.OriginWidth < 720) {
-                                    //     Roo.Msg.show({
-                                    //         title: 'Error',
-                                    //         msg: "Image width should be at least 720",
-                                    //         buttons: {ok : true},
-                                    //         fn: function(res) {
-                                    //             _this.cropbox.selectorEl.dom.value = '';
-                                    //             _this.cropbox.selectorEl.dom.click();
-                                    //         }
-                                    //     });
-                                    //     return false;
-                                    // }
+                                    if(imageEl.OriginWidth < 720) {
+                                        Roo.Msg.show({
+                                            title: 'Error',
+                                            msg: "Image width should be at least 720",
+                                            buttons: {ok : true},
+                                            fn: function(res) {
+                                                _this.cropbox.selectorEl.dom.value = '';
+                                                _this.cropbox.selectorEl.dom.click();
+                                            }
+                                        });
+                                        return false;
+                                    }
                                 }
                             }
                         }