Jump to content

User:MonkeyPython/vector.js: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Created page with 'if(wgAction == 'edit') { addOnloadHook(function minorEdit() { document.getElementById('wpMinoredit').checked = true; }); }'
 
m Remove legacy globals per phab:T72470 (see VPT notice; revert and ping me if broken!) (via WP:JWB)
Line 1: Line 1:
if(wgAction == 'edit') {
if(mw.config.get('wgAction') == 'edit') {
addOnloadHook(function minorEdit() {
addOnloadHook(function minorEdit() {
document.getElementById('wpMinoredit').checked = true;
document.getElementById('wpMinoredit').checked = true;

Revision as of 16:29, 5 February 2021

if(mw.config.get('wgAction') == 'edit') {
    addOnloadHook(function minorEdit() {
       document.getElementById('wpMinoredit').checked = true;
    });
}