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: http://core.svn.wordpress.org/trunk@21380 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
83f2d7dc6e
commit
b779aff50a
|
@ -113,8 +113,13 @@ if ( typeof wp === 'undefined' )
|
||||||
});
|
});
|
||||||
}( this.dropzone, this.supports.dragdrop ));
|
}( this.dropzone, this.supports.dragdrop ));
|
||||||
|
|
||||||
if ( this.browser )
|
if ( this.browser ) {
|
||||||
this.browser.on( 'mouseenter', this.refresh );
|
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 );
|
this.uploader.bind( 'UploadProgress', this.progress );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue