From c29cae34d0adfdbbfacf12137a10c2109bbe5f4e Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 6 Dec 2012 07:00:41 +0000 Subject: [PATCH] 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 --- wp-includes/js/plupload/wp-plupload.js | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/wp-includes/js/plupload/wp-plupload.js b/wp-includes/js/plupload/wp-plupload.js index 88a84edfc4..86a1919f47 100644 --- a/wp-includes/js/plupload/wp-plupload.js +++ b/wp-includes/js/plupload/wp-plupload.js @@ -315,16 +315,13 @@ window.wp = window.wp || {}; container = $( '#' + id ); if ( ! container.length ) { - container = $('
', { - id: 'wp-uploader-browser-' + this.uploader.id, - css: { - position: 'fixed', - top: '-1000px', - left: '-1000px', - height: 0, - width: 0 - } - }).appendTo('body'); + container = $('
').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 );