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:
parent
75f9258969
commit
a1513dd683
@ -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 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user