Content deleted Content added
Writ Keeper (talk | contribs) fx |
Writ Keeper (talk | contribs) I hate oo.ui so much |
||
Line 225:
confirmString = confirmString + "\nYour revdel summary is: "+ summary +"\n\nAre you sure you want to do this?";
{
for (title in pageTitles)▼
{
var
▲ for (title in pageTitles)
ajaxData = {action:"revisiondelete",type:"revision",ids:pageTitles[title],reason:summary};▼
if(deleteString != "")▼
{
var ajaxData
▲ ajaxData = {action:"revisiondelete",type:"revision",ids:pageTitles[title],reason:summary};
}▼
if(
{▼
ajaxData.show=revealString;▼
}▼
api.postWithToken('csrf', ajaxData).done(function()▼
{▼
numCompleted++;▼
if(numCompleted == numTitles)▼
{
mw.notify("modified " + revCount + " revision(s) successfully!");▼
return false;▼
}
▲ {
▲ ajaxData.show=revealString;
}
▲ api.postWithToken('csrf', ajaxData).done(function()
▲ {
▲ numCompleted++;
▲ if(numCompleted == numTitles)
{▼
▲ mw.notify("modified " + revCount + " revision(s) successfully!");
▲ return false;
}
});
▲ }
}
else mw.notify("Action canceled.");
});
return false;
}
Line 407 ⟶ 411:
confirmString = confirmString + "\nYour oversight summary is: "+ summary +"\n\nAre you sure you want to do this?";
{
for (title in pageTitles)▼
{
var
▲ for (title in pageTitles)
ajaxData = {action:"revisiondelete",type:"revision",ids:pageTitles[title],reason:summary,hide:deleteString};▼
{
var ajaxData
▲ 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)▼
{
ajaxData.suppress = "yes";
mw.notify("modified " + revCount + " revision(s) successfully!");▼
return false;▼
}
▲ {
▲ 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;
}
});
▲ }
}
else mw.notify("Action canceled.");
});
return false;
}
|