/* * Footer cleanup for Vector */ jQuery( document ).ready( function( $ ) { $( '#editpage-copywarn' ) .add( '.editOptions' ) .wrapAll( '
' ); $( '#wpSummary' ) .data( 'hint', $( '#wpSummaryLabel span small' ) .remove() .text() // FIXME - Not a long-term solution. This change should be done in the message itself .replace( /\)|\(/g, '' ) ) .change( function() { if ( $( this ).val().length == 0 ) { $( this ) .addClass( 'inline-hint' ) .val( $( this ).data( 'hint' ) ); } else { $( this ).removeClass( 'inline-hint' ); } } ) .focus( function() { if ( $( this ).val() == $( this ).data( 'hint' ) ) { $( this ) .removeClass( 'inline-hint' ) .val( "" ); } }) .blur( function() { $( this ).trigger( 'change' ); } ) .trigger( 'change' ); $( '#wpSummary' ) .add( '.editCheckboxes' ) .wrapAll( '' ); $( '#editpage-specialchars' ).remove(); // transclusions // FIXME - bad CSS styling here with double class selectors. Should address here. var transclusionCount = $( '.templatesUsed ul li' ).size(); $( '.templatesUsed ul' ) .wrap( '' ) .parent() .prepend( $( '