summaryrefslogtreecommitdiff
path: root/extensions/Vector/modules/ext.vector.footerCleanup.js
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/Vector/modules/ext.vector.footerCleanup.js')
-rw-r--r--extensions/Vector/modules/ext.vector.footerCleanup.js14
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' );