Content deleted Content added
Writ Keeper (talk | contribs) fx |
Writ Keeper (talk | contribs) fx |
||
Line 4:
{
$("#ca-closepeer>a").text("closing...");
$("#ca-closepeer
var talkPage = $("a:contains('Article talk')").attr("href");
var talkPageName = "";
Line 19:
api.edit(talkPageName, function(revision)
{
var regexResult = revision.content.match(/\{\{ *Peer review *(\| *archive *= *\d+) *\}\}/);
if(regexResult != null && typeof regexResult[1] != "undefined")
{
return {
text: revision.content.replace(
summary: "Closing peer review"
};
Line 37:
api.edit(mw.config.get("wgPageName"), function(revision)
{
var regexResult = revision.content.match(/\{\{ *Peer review page *\| *topic *= *\w+ *\}\}/);
if(regexResult != null)
{
return {
text: revision.content.replace(
summary: "Closing peer review"
};
Line 47:
else
{
alert("Error updating the Peer Review page; article talk page might require cleanup.");
$("#ca-closepeer>a").text("error!");
return null;
|