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

git-svn-id: https://develop.svn.wordpress.org/trunk@23100 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-12-06 07:00:41 +00:00
parent 66f7523e43
commit 3403c1d157
1 changed files with 7 additions and 10 deletions

View File

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