From 82e3f5a1c050d8a305e4166133d180e03900524f Mon Sep 17 00:00:00 2001 From: leon Date: Mon, 11 Jul 2022 17:44:11 +0800 Subject: [PATCH] examples/dialog/test-2.js --- examples/dialog/test-2.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/examples/dialog/test-2.js b/examples/dialog/test-2.js index 1a01b0bbf8..9fa6dc2767 100644 --- a/examples/dialog/test-2.js +++ b/examples/dialog/test-2.js @@ -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; + } } } } -- 2.39.2