Content deleted Content added
Writ Keeper (talk | contribs) I hate oo.ui so much |
Writ Keeper (talk | contribs) nvm |
||
Line 1:
mw.hook("wikipage.content").add( function()
{
mw.loader.using(["mediawiki.api","mediawiki.notify
{
var apiLimit = 500;
Line 225:
confirmString = confirmString + "\nYour revdel summary is: "+ summary +"\n\nAre you sure you want to do this?";
{
{
var
▲ for (title in pageTitles)
if(deleteString != "")
{
}▼
▲ ajaxData = {action:"revisiondelete",type:"revision",ids:pageTitles[title],reason:summary};
}▼
{
}
▲ {
▲ ajaxData.show=revealString;
▲ api.postWithToken('csrf', ajaxData).done(function()
▲ {
▲ numCompleted++;
▲ if(numCompleted == numTitles)
{▼
▲ mw.notify("modified " + revCount + " revision(s) successfully!");
▲ return false;
▲ }
}
▲ });
return false;
}
Line 411 ⟶ 407:
confirmString = confirmString + "\nYour oversight summary is: "+ summary +"\n\nAre you sure you want to do this?";
{
{
var
▲ for (title in pageTitles)
if(oversighting == 1)
{
▲ ajaxData = {action:"revisiondelete",type:"revision",ids:pageTitles[title],reason:summary,hide:deleteString};
{
}
▲ {
▲ ajaxData.suppress = "no";
▲ }
▲ else
▲ {
▲ mw.notify("Something went wrong, so we're going to abort without doing anything.");
▲ }
▲ api.postWithToken('csrf', ajaxData).done(function()
▲ numCompleted++;
▲ if(numCompleted == numTitles)
▲ mw.notify("modified " + revCount + " revision(s) successfully!");
▲ return false;
▲ }
}
▲ });
return false;
}
|