* @param {Object} file
*/
"previewrendered" : true,
+ /**
+ */
+ "previewResize" : true
});
};
this.files = this.files.slice(0, this.boxes);
}
- this.uploader.show();
+ this.uploader.show(false);
if(this.boxes > 0 && this.files.length > this.boxes - 1){
- this.uploader.hide();
+ this.uploader.hide(false);
}
var _this = this;
arrange : function()
{
if(!this.delegates.length){
- this.progressDialog.hide();
+ this.progressDialog.hide(false);
this.refresh();
return;
}
var delegate = this.delegates.shift();
- this.progressDialog.show();
+ this.progressDialog.show(false);
this.progressDialog.setTitle((this.progressBar.aria_valuemax - this.delegates.length) + ' / ' + this.progressBar.aria_valuemax);
refresh : function()
{
- this.uploader.show();
+ this.uploader.show(false);
if(this.boxes > 0 && this.files.length > this.boxes - 1){
- this.uploader.hide();
+ this.uploader.hide(false);
}
Roo.isTouch ? this.closable(false) : this.closable(true);
var width = image.dom.naturalWidth || image.dom.width;
var height = image.dom.naturalHeight || image.dom.height;
+ if(!this.previewResize) {
+ return;
+ }
+
if(width > height){
file.target.addClass('wide');
return;