This commit is contained in:
ccd0 2014-03-31 21:32:04 -07:00
commit 4cba926baf
2 changed files with 6 additions and 2 deletions

View File

@ -6542,7 +6542,9 @@
$.sync('captchas', QR.captcha.sync);
QR.captcha.nodes.challenge = challenge;
new MutationObserver(QR.captcha.load.bind(QR.captcha)).observe(challenge, {
childList: true
childList: true,
subtree: true,
attributes: true
});
return QR.captcha.load();
},

View File

@ -58,6 +58,8 @@ QR.captcha =
QR.captcha.nodes.challenge = challenge
new MutationObserver(QR.captcha.load.bind QR.captcha).observe challenge,
childList: true
subtree: true
attributes: true
QR.captcha.load()
sync: (captchas) ->
@ -134,4 +136,4 @@ QR.captcha =
@save()
else
return
e.preventDefault()
e.preventDefault()