User:Writ Keeper/Scripts/massRevdel.js: Difference between revisions

Content deleted Content added
fx
fx
Line 44:
var revIds = "";
var revCount = 0;
var numTitles = 0;
var pageTitles = {};
$("input.revdelIds:checked").each(function(ind)
Line 56 ⟶ 57:
{
pageTitles[$(this).attr("name")] = $(this).val();
numTitles++;
}
else
Line 161 ⟶ 163:
if(confirm(confirmString))
{
var pageBatches = Object.keys(pageTitles);
var numBatches = pageBatches.length;
var numCompleted = 0;
for each (title in pageBatchespageTitles)
{
var ajaxData;
Line 179:
{
numCompleted++;
if(numCompleted == numBatchesnumTitles)
{
alert("modified " + revCount + " revision(s) successfully!");