Content deleted Content added
fix |
m Maintenance: Replacing addOnloadHook with native jQuery (mw:ResourceLoader/Migration_guide_(users)#addOnloadHook - phab:T130879) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 33:
minorDropdown.onchange = new Function("editsummOnCannedSummarySelected()");
editsummAddOptionToDropdown(
editsummAddOptionToDropdown(
if (mw.config.get('wgNamespaceNumber') == 0)
{
▲ editsummAddOptionToDropdown(dropdown,"Spelling/grammar correction");
▲ editsummAddOptionToDropdown(dropdown,"Fixing style/layout errors");
▲ editsummAddOptionToDropdown(dropdown,"[[Help:Reverting|Reverting]] [[Wikipedia:Vandalism|Vandalism]] or test edit");
▲ editsummAddOptionToDropdown(dropdown,"[[Help:Reverting|Reverting]] unexplained content removal");
▲ editsummAddOptionToDropdown(dropdown,"Copyedit (minor)");
editsummAddOptionToDropdown(dropdown,"Expanding article");
editsummAddOptionToDropdown(dropdown,"Adding/improving reference(s)");
Line 55 ⟶ 53:
editsummAddOptionToDropdown(dropdown,"Copyedit (major)");
} else
{
editsummAddOptionToDropdown(dropdown,"Reply");
editsummAddOptionToDropdown(dropdown,"Comment");
if ((mw.config.get('wgNamespaceNumber') % 2 != 0) & (mw.config.get('wgNamespaceNumber') != 3))
{
editsummAddOptionToDropdown(dropdown,"[[Wikipedia:WikiProject|WikiProject]] tagging");
editsummAddOptionToDropdown(dropdown,"[[Wikipedia:WikiProject|WikiProject]] assessment");
}
}
Line 104:
}
editsummInitialize ();
|