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:
parent
395f2b5073
commit
c29cae34d0
|
@ -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 );
|
||||||
|
|
Loading…
Reference in New Issue