wp/wp-admin/js/media-upload.js
changeset 7 cf61fcea0001
parent 5 5e2f62d02dcd
child 9 177826044cd9
equal deleted inserted replaced
6:490d5cc509ed 7:cf61fcea0001
    45 
    45 
    46 		if ( $('#wpadminbar').length ) {
    46 		if ( $('#wpadminbar').length ) {
    47 			adminbar_height = parseInt( $('#wpadminbar').css('height'), 10 );
    47 			adminbar_height = parseInt( $('#wpadminbar').css('height'), 10 );
    48 		}
    48 		}
    49 
    49 
    50 		if ( tbWindow.size() ) {
    50 		if ( tbWindow.length ) {
    51 			tbWindow.width( W - 50 ).height( H - 45 - adminbar_height );
    51 			tbWindow.width( W - 50 ).height( H - 45 - adminbar_height );
    52 			$('#TB_iframeContent').width( W - 50 ).height( H - 75 - adminbar_height );
    52 			$('#TB_iframeContent').width( W - 50 ).height( H - 75 - adminbar_height );
    53 			tbWindow.css({'margin-left': '-' + parseInt( ( ( W - 50 ) / 2 ), 10 ) + 'px'});
    53 			tbWindow.css({'margin-left': '-' + parseInt( ( ( W - 50 ) / 2 ), 10 ) + 'px'});
    54 			if ( typeof document.body.style.maxWidth !== 'undefined' )
    54 			if ( typeof document.body.style.maxWidth !== 'undefined' )
    55 				tbWindow.css({'top': 20 + adminbar_height + 'px', 'margin-top': '0'});
    55 				tbWindow.css({'top': 20 + adminbar_height + 'px', 'margin-top': '0'});