diff options
Diffstat (limited to 'extensions/Vector/modules')
-rw-r--r-- | extensions/Vector/modules/ext.vector.footerCleanup.css | 2 | ||||
-rw-r--r-- | extensions/Vector/modules/ext.vector.footerCleanup.js | 14 |
2 files changed, 9 insertions, 7 deletions
diff --git a/extensions/Vector/modules/ext.vector.footerCleanup.css b/extensions/Vector/modules/ext.vector.footerCleanup.css index a2220c80..b935aed6 100644 --- a/extensions/Vector/modules/ext.vector.footerCleanup.css +++ b/extensions/Vector/modules/ext.vector.footerCleanup.css @@ -12,7 +12,6 @@ border: 1px solid silver; border-top: none; padding: 1em 1em 1.5em 1em; - margin-right: -2px; margin-bottom: 2em; } @@ -74,3 +73,4 @@ input#wpSummary { .editButtons > input[type='submit']:first-child { margin-left: .1em; } + diff --git a/extensions/Vector/modules/ext.vector.footerCleanup.js b/extensions/Vector/modules/ext.vector.footerCleanup.js index ba4791e7..7c4b6898 100644 --- a/extensions/Vector/modules/ext.vector.footerCleanup.js +++ b/extensions/Vector/modules/ext.vector.footerCleanup.js @@ -1,19 +1,21 @@ -/* +/** * Footer cleanup for Vector */ - ( function ( $ ) { +( function ( $ ) { // Wait for onload to remove edit help and "|" after cancel link. - window.onload = function() { + window.onload = function () { // Only if advanced editor is found. if ( 'wikiEditor' in $ ) { $( '.editButtons' ).find( '.editHelp' ).remove(); // Remove the "|" from after the cancelLink. var $cancelLink = $( '#mw-editform-cancel' ); $cancelLink.parent().empty().append( $cancelLink ); + // Adjustment for proper right side alignment with WikiEditor. + $( '.editOptions, #editpage-specialchars' ).css( 'margin-right', '-2px' ); } }; - // Waiting until dom ready as the module is loaded in the head. - $( document ).ready( function () { + // Waiting until dom ready as the module is loaded in the head. + $( document ).ready( function () { // Make "Templates used" a collapsible list. $( '.templatesUsed ul' ).footerCollapsibleList( { name: 'templates-used-list', @@ -25,5 +27,5 @@ name: 'hidden-categories-list', title: mw.msg( 'vector-footercleanup-categories' ) } ); - } ); + } ); } ( jQuery ) ); |