]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/js/media-upload.js
WordPress 4.7.2
[autoinstalls/wordpress.git] / wp-admin / js / media-upload.js
index 7e6eed23da5bed19914ef379327c5840ba21ce5f..cd969b9b3a483555eb269bc2c459ae87402155d8 100644 (file)
@@ -40,14 +40,14 @@ var tb_position;
                var tbWindow = $('#TB_window'),
                        width = $(window).width(),
                        H = $(window).height(),
-                       W = ( 720 < width ) ? 720 : width,
+                       W = ( 833 < width ) ? 833 : width,
                        adminbar_height = 0;
 
                if ( $('#wpadminbar').length ) {
                        adminbar_height = parseInt( $('#wpadminbar').css('height'), 10 );
                }
 
-               if ( tbWindow.size() ) {
+               if ( tbWindow.length ) {
                        tbWindow.width( W - 50 ).height( H - 45 - adminbar_height );
                        $('#TB_iframeContent').width( W - 50 ).height( H - 75 - adminbar_height );
                        tbWindow.css({'margin-left': '-' + parseInt( ( ( W - 50 ) / 2 ), 10 ) + 'px'});