Ticket #15750: 15750.2.patch
File 15750.2.patch, 2.4 KB (added by , 15 years ago) |
---|
-
wp-admin/js/plugin-install.dev.js
1 1 /* Plugin Browser Thickbox related JS*/ 2 var tb_position; 2 3 jQuery(document).ready(function($) { 3 var thickDims= function() {4 var tbWindow = $('#TB_window'), width = $(window).width(), H = $(window).height(), W = ( 720 < width ) ? 720 : width ;4 tb_position = function() { 5 var tbWindow = $('#TB_window'), width = $(window).width(), H = $(window).height(), W = ( 720 < width ) ? 720 : width, adminbar_height = 0; 5 6 7 if ( $('body.admin-bar').length ) 8 adminbar_height = 28; 9 6 10 if ( tbWindow.size() ) { 7 tbWindow.width( W - 50 ).height( H - 45 );8 $('#TB_iframeContent').width( W - 50 ).height( H - 75 );11 tbWindow.width( W - 50 ).height( H - 45 - adminbar_height ); 12 $('#TB_iframeContent').width( W - 50 ).height( H - 75 - adminbar_height ); 9 13 tbWindow.css({'margin-left': '-' + parseInt((( W - 50 ) / 2),10) + 'px'}); 10 if ( ! ( $.browser.msie && $.browser.version.substr(0,1) < 7 ))11 tbWindow.css({'top': '20px','margin-top':'0'});14 if ( typeof document.body.style.maxWidth != 'undefined' ) 15 tbWindow.css({'top': 20 + adminbar_height + 'px','margin-top':'0'}); 12 16 }; 13 17 14 18 return $('#dashboard_plugins a.thickbox, .plugins a.thickbox').each( function() { … … 17 21 return; 18 22 href = href.replace(/&width=[0-9]+/g, ''); 19 23 href = href.replace(/&height=[0-9]+/g, ''); 20 $(this).attr( 'href', href + '&width=' + ( W - 80 ) + '&height=' + ( H - 85 ) );24 $(this).attr( 'href', href + '&width=' + ( W - 80 ) + '&height=' + ( H - 85 - adminbar_height ) ); 21 25 }); 22 26 }; 23 27 24 thickDims().click( function() { 28 $(window).resize(function(){ tb_position(); }); 29 30 $('#dashboard_plugins a.thickbox, .plugins a.thickbox').click( function() { 25 31 tb_click.call(this); 26 32 27 33 $('#TB_title').css({'background-color':'#222','color':'#cfcfcf'}); -
wp-admin/network/index.php
35 35 wp_dashboard_setup(); 36 36 37 37 wp_enqueue_script( 'dashboard' ); 38 wp_enqueue_script( 'plugin-install' ); 38 39 wp_admin_css( 'dashboard' ); 40 wp_admin_css( 'plugin-install' ); 39 41 add_thickbox(); 40 42 41 43 add_screen_option('layout_columns', array('max' => 4, 'default' => 2) );