diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2012-06-13 23:40:19 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2012-06-13 23:40:19 +0200 |
commit | 588cc40aeec0165400421ef9612e81b6d2c7b936 (patch) | |
tree | 85f1e86ba187fbc81ef42393433f1fa5aa6defb3 /extensions/Vector/modules/ext.vector.footerCleanup.js | |
parent | 67674d7a741c7c1de947f30ceb1ab3b35283308e (diff) |
Update to MediaWiki 1.19.1
Diffstat (limited to 'extensions/Vector/modules/ext.vector.footerCleanup.js')
-rw-r--r-- | extensions/Vector/modules/ext.vector.footerCleanup.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/extensions/Vector/modules/ext.vector.footerCleanup.js b/extensions/Vector/modules/ext.vector.footerCleanup.js index 66838375..b3f5594d 100644 --- a/extensions/Vector/modules/ext.vector.footerCleanup.js +++ b/extensions/Vector/modules/ext.vector.footerCleanup.js @@ -1,7 +1,7 @@ /* * Footer cleanup for Vector */ -jQuery( document ).ready( function( $ ) { +jQuery( function ( $ ) { $( '#editpage-copywarn' ) .add( '.editOptions' ) .wrapAll( '<div id="editpage-bottom"></div>' ); @@ -13,8 +13,8 @@ jQuery( document ).ready( function( $ ) { // FIXME - Not a long-term solution. This change should be done in the message itself .replace( /\)|\(/g, '' ) ) - .change( function() { - if ( $( this ).val().length == 0 ) { + .change( function () { + if ( $( this ).val().length === 0 ) { $( this ) .addClass( 'inline-hint' ) .val( $( this ).data( 'hint' ) ); @@ -22,14 +22,14 @@ jQuery( document ).ready( function( $ ) { $( this ).removeClass( 'inline-hint' ); } } ) - .focus( function() { + .focus( function () { if ( $( this ).val() == $( this ).data( 'hint' ) ) { $( this ) .removeClass( 'inline-hint' ) .val( "" ); } }) - .blur( function() { $( this ).trigger( 'change' ); } ) + .blur( function () { $( this ).trigger( 'change' ); } ) .trigger( 'change' ); $( '#wpSummary' ) .add( '.editCheckboxes' ) @@ -49,7 +49,7 @@ jQuery( document ).ready( function( $ ) { $( '.mw-templatesUsedExplanation' ).remove(); $( '.collapsible-list label' ) - .click( function() { + .click( function () { $( this ) .parent() .toggleClass( 'expanded' ) @@ -59,8 +59,10 @@ jQuery( document ).ready( function( $ ) { return false; }) .trigger( 'click' ); + $( '#wpPreview, #wpDiff, .editHelp, #editpage-specialchars' ) .remove(); + $( '#mw-editform-cancel' ) .remove() .appendTo( '.editButtons' ); |