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

Content deleted Content added
fx
test
Line 1:
var lastSelectedRevdel = -1;
 
mw.hook("wikipage.content").add( function()
{
Line 20 ⟶ 22:
var pageTitle = /target=([^&]+)/.exec($(this).children("a").attr("href"))[1];
el.innerHTML = "<input type='checkbox' name='"+decodeURIComponent(pageTitle)+"' class='revdelIds' value='"+revId+"'>";
$(el).children(".revdelIds").data("index", ind);
});
$("ul.mw-contributions-list").after("</form>");
Line 48 ⟶ 51:
$(this).prop("checked", false);
})
}
);
$("input.revdelIds").click(
function()
{
lastSelectedRevdel = $(this).data("index");
}
);