Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
(Created page with "→Any JavaScript here will be loaded for all users on every page load.: window.charinsertDontMove = false;") |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* 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 ); | ||
+ | }); |
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 ); });