Captcha must be replaced before container is observed.

This commit is contained in:
ccd0 2015-06-30 08:50:46 -07:00
parent e5ff2c5e8d
commit 3aea135524

View File

@ -32,6 +32,7 @@ Captcha.v1 =
QR.captcha.clear()
$.sync 'captchas', @sync
@replace()
@beforeSetup()
@setup() if Conf['Auto-load captcha']
new MutationObserver(@afterSetup).observe $.id('captchaContainerAlt'), childList: true
@ -49,7 +50,6 @@ Captcha.v1 =
$.replace old, container
create: ->
@replace()
$.globalEval '''
(function() {
var container = document.getElementById("captchaContainerAlt");