mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
Also auto-insert reCAPTCHA in member module if the form does not contain a placeholder
This commit is contained in:
parent
ae27414230
commit
d13bf13bc9
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ function reCaptchaCallback() {
|
||||||
if (recaptcha_instances.size() === 0) {
|
if (recaptcha_instances.size() === 0) {
|
||||||
var autoinsert_candidates = $("form").filter(function() {
|
var autoinsert_candidates = $("form").filter(function() {
|
||||||
var actinput = $("input[name='act']", this);
|
var actinput = $("input[name='act']", this);
|
||||||
if (actinput.size() && actinput.val() && actinput.val().match(/^proc.+Insert(Document|Comment)/i)) {
|
if (actinput.size() && actinput.val() && actinput.val().match(/^proc.+(Insert(Document|Comment|)|FindAccount|ResendAuthMail)/i)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
var procfilter = $(this).attr("onsubmit");
|
var procfilter = $(this).attr("onsubmit");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue