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.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/extensions/Vector/modules/ext.vector.footerCleanup.js b/extensions/Vector/modules/ext.vector.footerCleanup.js
index 7c4b6898..5881014d 100644
--- a/extensions/Vector/modules/ext.vector.footerCleanup.js
+++ b/extensions/Vector/modules/ext.vector.footerCleanup.js
@@ -3,7 +3,7 @@
*/
( function ( $ ) {
// Wait for onload to remove edit help and "|" after cancel link.
- window.onload = function () {
+ $( window ).load( function () {
// Only if advanced editor is found.
if ( 'wikiEditor' in $ ) {
$( '.editButtons' ).find( '.editHelp' ).remove();
@@ -13,17 +13,17 @@
// 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 () {
// Make "Templates used" a collapsible list.
- $( '.templatesUsed ul' ).footerCollapsibleList( {
+ $( '.templatesUsed' ).footerCollapsibleList( {
name: 'templates-used-list',
title: mw.msg( 'vector-footercleanup-templates' )
} );
// Make "Hidden categories" a collapsible list.
- $( '.hiddencats ul' ).footerCollapsibleList( {
+ $( '.hiddencats' ).footerCollapsibleList( {
name: 'hidden-categories-list',
title: mw.msg( 'vector-footercleanup-categories' )
} );