| [ Index ] |
PHP Cross Reference of Wordpress 2.7.1 |
[Summary view] [Print] [Text view]
1 /* Plugin Browser Thickbox related JS*/ 2 jQuery(function($) { 3 var thickDims = function() { 4 var tbWindow = $('#TB_window'); 5 var width = $(window).width(); 6 var H = $(window).height(); 7 var W = ( 720 < width ) ? 720 : width; 8 9 if ( tbWindow.size() ) { 10 tbWindow.width( W - 50 ).height( H - 45 ); 11 $('#TB_iframeContent').width( W - 50 ).height( H - 75 ); 12 tbWindow.css({'margin-left': '-' + parseInt((( W - 50 ) / 2),10) + 'px'}); 13 if ( ! ( $.browser.msie && $.browser.version.substr(0,1) < 7 ) ) 14 tbWindow.css({'top':'20px','margin-top':'0'}); 15 }; 16 17 return $('a.thickbox').each( function() { 18 var href = $(this).attr('href'); 19 if ( ! href ) 20 return; 21 href = href.replace(/&width=[0-9]+/g, ''); 22 href = href.replace(/&height=[0-9]+/g, ''); 23 $(this).attr( 'href', href + '&width=' + ( W - 80 ) + '&height=' + ( H - 85 ) ); 24 }); 25 }; 26 27 thickDims().click( function() { 28 $('#TB_title').css({'background-color':'#222','color':'#cfcfcf'}); 29 $('#TB_ajaxWindowTitle').html('<strong>' + plugininstallL10n.plugin_information + '</strong> ' + $(this).attr('title') ); 30 return false; 31 }); 32 }); 33 34 /* Plugin install related JS*/ 35 jQuery(function($) { 36 $('#install-plugins tbody.plugins tr').click( function() { 37 $(this).find('.action-links a.onclick').click(); 38 return false; 39 }); 40 41 $('#plugin-information #sidemenu a').click( function() { 42 var tab = $(this).attr('name'); 43 //Flip the tab 44 $('#plugin-information-header a.current').removeClass('current'); 45 $(this).addClass('current'); 46 //Flip the content. 47 $('#section-holder div.section').hide(); //Hide 'em all 48 $('#section-' + tab).show(); 49 return false; 50 }); 51 });
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Mar 23 16:23:02 2009 | Cross-referenced by PHPXref 0.7 |