Permalink
Browse files

Hotfix: Resolve "mark as reviewing" bug

  • Loading branch information...
theopolisme committed Sep 19, 2013
1 parent b4ff542 commit b4cb0f3230ae5782c1faa13e75c7b3ae53ea0c4a
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/submissions.js
View
@@ -919,10 +919,10 @@ function afcHelper_act(action) {
var containComment = (pagetext.indexOf('----') !== -1);
var newComment = "\{\{afc comment|1=" + comment + " \~\~\~\~\}\}";
if (comment !== '') {
var afc_re = /\{\{\s*afc submission\s*\|\s*[\| ](?:\{\{[^\{\}]*\}\}|[^\}\{])*\}\}/i;
if (!containComment) {
var afc_re = /\{\{\s*afc submission\s*\|\s*[||h|r|d](?:\{\{[^\{\}]*\}\}|[^\}\{])*\}\}/i;
if (!afc_re.test(pagetext)) {
alert("Unable to locate AFC submission template, aborting...");
alert("Unable to locate pending AFC submission template, aborting...");
return;
}
var afctemplate = afc_re.exec(pagetext)[0];
@@ -933,7 +933,7 @@ function afcHelper_act(action) {
pagetext = pagetext.substring(0, idx) + newComment + '\n' + pagetext.substring(idx);
}
}
var afc_re = /(\{\{\s*afc submission\s*\|)(\s*[||h]\s*)*((?:\{\{[^\{\}]*\}\}|[^\}\{])*\}\})/i;
var afc_re = /(\{\{\s*afc submission\s*\|)(\s*[\| ]\s*)((?:\{\{[^\{\}]*\}\}|[^\}\{])*\}\})/i;
if (!afc_re.test(pagetext)) {
alert("Unable to locate AFC submission template, aborting...");
return;

0 comments on commit b4cb0f3

Please sign in to comment.