17,230
edits
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'); |