-
+ 7645D24A8A9D64D762EB80785C29B925D47670B4EEC201C33A64EECAEC09DBD3A25841FD6EFF6899AB41B10F9D30F369A9C54D83D8858A3F38D1E8B93248FFA5
mp-wp/wp-admin/js/plugin-install.js
(0 . 0)(1 . 53)
50777 /* Plugin Browser Thickbox related JS*/
50778 jQuery(function($) {
50779 var thickDims = function() {
50780 var tbWindow = $('#TB_window');
50781 var width = $(window).width();
50782 var H = $(window).height();
50783 var W = ( 720 < width ) ? 720 : width;
50784
50785 if ( tbWindow.size() ) {
50786 tbWindow.width( W - 50 ).height( H - 45 );
50787 $('#TB_iframeContent').width( W - 50 ).height( H - 75 );
50788 tbWindow.css({'margin-left': '-' + parseInt((( W - 50 ) / 2),10) + 'px'});
50789 if ( ! ( $.browser.msie && $.browser.version.substr(0,1) < 7 ) )
50790 tbWindow.css({'top':'20px','margin-top':'0'});
50791 };
50792
50793 return $('a.thickbox').each( function() {
50794 var href = $(this).attr('href');
50795 if ( ! href )
50796 return;
50797 href = href.replace(/&width=[0-9]+/g, '');
50798 href = href.replace(/&height=[0-9]+/g, '');
50799 $(this).attr( 'href', href + '&width=' + ( W - 80 ) + '&height=' + ( H - 85 ) );
50800 });
50801 };
50802
50803 thickDims().click( function() {
50804 $('#TB_title').css({'background-color':'#222','color':'#cfcfcf'});
50805 $('#TB_ajaxWindowTitle').html('<strong>' + plugininstallL10n.plugin_information + '</strong> ' + $(this).attr('title') );
50806 return false;
50807 });
50808
50809 $(window).resize( function() { tb_position() } );
50810 });
50811
50812 /* Plugin install related JS*/
50813 jQuery(function($) {
50814 $('#install-plugins tbody.plugins tr').click( function() {
50815 $(this).find('.action-links a.onclick').click();
50816 return false;
50817 });
50818
50819 $('#plugin-information #sidemenu a').click( function() {
50820 var tab = $(this).attr('name');
50821 //Flip the tab
50822 $('#plugin-information-header a.current').removeClass('current');
50823 $(this).addClass('current');
50824 //Flip the content.
50825 $('#section-holder div.section').hide(); //Hide 'em all
50826 $('#section-' + tab).show();
50827 return false;
50828 });
50829 });