Skip to content

Commit

Permalink
When the browser property is not provided to wp.Uploader, hide Pluplo…
Browse files Browse the repository at this point in the history
…ad'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
  • Loading branch information
koopersmith committed Aug 1, 2012
1 parent 5b725f1 commit 48c6365
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion wp-includes/js/plupload/wp-plupload.dev.js
Expand Up @@ -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 );

Expand Down

0 comments on commit 48c6365

Please sign in to comment.