227
editsno edit summary
MetalManeMc (talk | contribs) (Undo revision 130971 by MetalManeMc (talk)) Tag: Undo |
MetalManeMc (talk | contribs) No edit summary |
||
Line 24: | Line 24: | ||
}, | }, | ||
api = new mw.Api(); | api = new mw.Api(); | ||
$('body').addClass('theme-light') | |||
$('body').removeClass('theme-dark-grey') | |||
} | } | ||
else { | else { | ||
Line 36: | Line 34: | ||
}, | }, | ||
api = new mw.Api(); | api = new mw.Api(); | ||
mw.loader.using(['ext.gadget.theme-light']).then(function() { | |||
$('body').addClass('theme-light'); | |||
$('body').removeClass('theme-dark-grey'); | |||
}); | |||
} | } | ||
api.postWithToken( 'csrf', params ).done( function ( data ) {}); | api.postWithToken( 'csrf', params ).done( function ( data ) {}); | ||
}); | }); |