Ticket #27440: 27440-changeset-29041.diff
File 27440-changeset-29041.diff, 851 bytes (added by , 10 years ago) |
---|
-
wp-admin/js/plugin-install.js
54 54 $( '#plugin-information-tabs a.current' ).removeClass( 'current' ); 55 55 $( this ).addClass( 'current' ); 56 56 //Only show the fyi box in the description section, on smaller screen, where it's otherwise always displayed at the top. 57 if ( 'description' != $( this ).attr( 'name' ) && $( 'body').width() < 830 )57 if ( 'description' != tab && $( 'body' ).width() < 830 ) { 58 58 $( '#plugin-information-content div.fyi' ).hide(); 59 else59 } else { 60 60 $( '#plugin-information-content div.fyi' ).show(); 61 } 61 62 //Flip the content. 62 63 $( '#section-holder div.section' ).hide(); //Hide 'em all 63 64 $( '#section-' + tab ).show();