Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
'use strict'; | 'use strict'; | ||
var edittools; | var edittools; | ||
− | + | if ( $( '.mw-editTools' ).length ) { | |
− | + | edittools = $( '.mw-editTools' )[0]; | |
} else { | } else { | ||
return; | return; |
Latest revision as of 12:23, 6 July 2022
/* Any JavaScript here will be loaded for all users on every page load. */ // Extension:Edittools // We put the edit tools section above the summary box. jQuery( document ).ready( function ( $ ) { 'use strict'; var edittools; if ( $( '.mw-editTools' ).length ) { edittools = $( '.mw-editTools' )[0]; } else { return; } $( '.editOptions' ).before( edittools ); });