Properly apply CSS and an ID attribute to the select files container. props koopersmith. fixes #22780. see #22762.

git-svn-id: http://core.svn.wordpress.org/trunk@23100 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2012-12-06 07:00:41 +00:00
parent 395f2b5073
commit c29cae34d0
1 changed files with 7 additions and 10 deletions

View File

@ -315,16 +315,13 @@ window.wp = window.wp || {};
container = $( '#' + id ); container = $( '#' + id );
if ( ! container.length ) { if ( ! container.length ) {
container = $('<div class="wp-uploader-browser" />', { container = $('<div class="wp-uploader-browser" />').css({
id: 'wp-uploader-browser-' + this.uploader.id,
css: {
position: 'fixed', position: 'fixed',
top: '-1000px', top: '-1000px',
left: '-1000px', left: '-1000px',
height: 0, height: 0,
width: 0 width: 0
} }).attr( 'id', 'wp-uploader-browser-' + this.uploader.id ).appendTo('body');
}).appendTo('body');
} }
container.append( this.browser ); container.append( this.browser );