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

Content deleted Content added
test
test
Line 54:
);
$("input.revdelIds").click(
function(ev)
{
lastSelectedRevdelvar newIndex = $(this).data("index");
if(ev.shiftKey && lastSelectedRevdel >= 0)
{
var checkboxArray = $("input.revdeLids");
var start = lastSelectedRevdel;
var stop = newIndex;
if(start < stop)
{
for(var i = start; i < stop; i++)
{
$(checkboxArray[i]).prop("checked", true);
}
}
else
{
for(var i = start; i > stop; i--)
{
$(checkboxArray[i]).prop("checked", true);
}
}
}
lastSelectedRevdel = newIndex;
}
);