X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=examples%2Fdialog%2Ftest-2.js;h=b8efe82c2fa76dcdba218775fdee080d23825e1a;hb=bd5dfe63c89d60a55237c6b717256c8e131e6eaa;hp=08c28d1674b61cc49928e6ec65ce3cb92cdfc0ff;hpb=72f5c7897bfadc292c01a313f0a6a4cab8b17866;p=roojs1 diff --git a/examples/dialog/test-2.js b/examples/dialog/test-2.js index 08c28d1674..b8efe82c2f 100644 --- a/examples/dialog/test-2.js +++ b/examples/dialog/test-2.js @@ -36,35 +36,25 @@ var uploadCropbox = { xns : Roo.dialog, minWidth : 720, minHeight: 480, - buttons: [ - { - tag : 'div', - cls : 'btn-group roo-upload-cropbox-picture', - action : 'picture', - cn : [ - { - tag : 'button', - cls : 'btn btn-default', - html : '' - } - ] - } - ], + buttons: [], listeners : { render : function (_self) { - console.log("RENDER"); _this.cropbox = _self; }, loadcanvas : function (_self, imageEl) { - console.log("LOADCANVAS"); - console.log(_self); - console.log(imageEl); - if(imageEl.OriginWidth < 720) { - console.log("Image width should be at least 720"); - 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.click(); + // } + // }); + // return false; + // } } } }