When the browser property is not provided to wp.Uploader, hide Plupload's auto-created file input and call Plupload's disableBrowse. see #21437, [21379].

git-svn-id: https://develop.svn.wordpress.org/trunk@21380 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith 2012-08-01 02:27:18 +00:00
parent 75f9258969
commit a1513dd683

View File

@ -113,8 +113,13 @@ if ( typeof wp === 'undefined' )
});
}( this.dropzone, this.supports.dragdrop ));
if ( this.browser )
if ( this.browser ) {
this.browser.on( 'mouseenter', this.refresh );
} else {
this.uploader.disableBrowse( true );
// If HTML5 mode, hide the auto-created file container.
$('#' + this.uploader.id + '_html5_container').hide();
}
this.uploader.bind( 'UploadProgress', this.progress );