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

Content deleted Content added
duh
fx
Line 4:
{
$("#ca-closepeer>a").text("closing...");
$("#ca-closepeer>a").off("click");
var talkPage = $("a:contains('Article talk')").attr("href");
var talkPageName = "";
if(talkPage != null)
{
talkPage = talkPage.match(/\/wiki\/(\w+:\w.+)/);
if(talkPage != null)
{
Line 29 ⟶ 30:
{
alert("Error updating the article talk page.");
$("#ca-closepeer>a").text("error!");
return null;
}
Line 46 ⟶ 48:
{
alert("Error updating the Peer Review page.");
$("#ca-closepeer>a").text("error!");
return null;
}