From a042756f85356614862d141b0e83e9a4c3325d4e Mon Sep 17 00:00:00 2001 From: leon Date: Fri, 17 Jun 2022 12:41:40 +0800 Subject: [PATCH] Roo/bootstrap/UploadCropbox.js roojs-bootstrap.js roojs-bootstrap-debug.js --- Roo/bootstrap/UploadCropbox.js | 2 +- roojs-bootstrap-debug.js | 2 +- roojs-bootstrap.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Roo/bootstrap/UploadCropbox.js b/Roo/bootstrap/UploadCropbox.js index f55a0960ee..fd98293fa9 100644 --- a/Roo/bootstrap/UploadCropbox.js +++ b/Roo/bootstrap/UploadCropbox.js @@ -125,7 +125,7 @@ Roo.bootstrap.UploadCropbox = function(config){ "arrange" : true }); - this.buttons = this.buttons || Roo.bootstrap.UploadCropbox.footer.DOCUMENT; + this.buttons = this.buttons || Roo.bootstrap.UploadCropbox.footer.STANDARD; }; Roo.extend(Roo.bootstrap.UploadCropbox, Roo.bootstrap.Component, { diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 62e382145f..1fb6e64f97 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -33432,7 +33432,7 @@ Roo.bootstrap.UploadCropbox = function(config){ "arrange" : true }); - this.buttons = this.buttons || Roo.bootstrap.UploadCropbox.footer.DOCUMENT; + this.buttons = this.buttons || Roo.bootstrap.UploadCropbox.footer.STANDARD; }; Roo.extend(Roo.bootstrap.UploadCropbox, Roo.bootstrap.Component, { diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index 6428e10df5..71b78e2300 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -1442,7 +1442,7 @@ if(this.seconds>0){this.hide.defer(this.seconds,this);}},setTitle:function(A){th },setIcon:function(A){if(this.faicon){this.alertEl.removeClass(['fa','fa-'+this.faicon]);}this.faicon=A;this.alertEl.addClass(['fa','fa-'+this.faicon]);},hide:function(){this.el.hide();},show:function(){this.el.show();}}); // Roo/bootstrap/UploadCropbox.js Roo.bootstrap.UploadCropbox=function(A){console.log("BOOTSTRAP UPLOAD CROPBOX CONSTRUCTOR");Roo.bootstrap.UploadCropbox.superclass.constructor.call(this,A);this.addEvents({"beforeselectfile":true,"initial":true,"crop":true,"prepare":true,"exception":true,"beforeloadcanvas":true,"trash":true,"download":true,"footerbuttonclick":true,"resize":true,"rotate":true,"inspect":true,"upload":true,"arrange":true} -);this.buttons=this.buttons||Roo.bootstrap.UploadCropbox.footer.DOCUMENT;};Roo.extend(Roo.bootstrap.UploadCropbox,Roo.bootstrap.Component,{emptyText:'Click to upload image',rotateNotify:'Image is too small to rotate',errorTimeout:3000,scale:0,baseScale:1,rotate:0,dragable:false,pinching:false,mouseX:0,mouseY:0,cropData:false,minWidth:300,minHeight:300,file:false,exif:{} +);this.buttons=this.buttons||Roo.bootstrap.UploadCropbox.footer.STANDARD;};Roo.extend(Roo.bootstrap.UploadCropbox,Roo.bootstrap.Component,{emptyText:'Click to upload image',rotateNotify:'Image is too small to rotate',errorTimeout:3000,scale:0,baseScale:1,rotate:0,dragable:false,pinching:false,mouseX:0,mouseY:0,cropData:false,minWidth:300,minHeight:300,file:false,exif:{} ,baseRotate:1,cropType:'image/jpeg',buttons:false,canvasLoaded:false,isDocument:false,method:'POST',paramName:'imageUpload',loadMask:true,loadingText:'Loading...',maskEl:false,getAutoCreate:function(){var A={tag:'div',cls:'roo-upload-cropbox',cn:[{tag:'input',cls:'roo-upload-cropbox-selector',type:'file'} ,{tag:'div',cls:'roo-upload-cropbox-body',style:'cursor:pointer',cn:[{tag:'div',cls:'roo-upload-cropbox-preview'},{tag:'div',cls:'roo-upload-cropbox-thumb'},{tag:'div',cls:'roo-upload-cropbox-empty-notify',html:this.emptyText},{tag:'div',cls:'roo-upload-cropbox-error-notify alert alert-danger',html:this.rotateNotify} ]},{tag:'div',cls:'roo-upload-cropbox-footer',cn:{tag:'div',cls:'btn-group btn-group-justified roo-upload-cropbox-btn-group',cn:[]}}]};return A;},onRender:function(ct,A){Roo.bootstrap.UploadCropbox.superclass.onRender.call(this,ct,A);if(this.buttons.length){Roo.each(this.buttons,function(bb){var B=this.el.select('.roo-upload-cropbox-footer div.roo-upload-cropbox-btn-group').first().createChild(bb); -- 2.39.2