MediaWiki:Gadget-SectionInput.js: Difference between revisions

Want an adless experience? Log in or Create an account.
m
update deprecated wg variables to mw.config
mNo edit summary
m (update deprecated wg variables to mw.config)
 
Line 1: Line 1:
$(function()
$(function()
{
{
if (wgAction == 'edit' || wgAction == 'submit')
if (mw.config.get('wgAction') == 'edit' || mw.config.get('wgAction') == 'submit')
{
{
var summary = document.getElementById('wpSummary');
var summary = document.getElementById('wpSummary');