diff --git a/src/General/css/style.css b/src/General/css/style.css index 83bc47006..2569a2adf 100755 --- a/src/General/css/style.css +++ b/src/General/css/style.css @@ -1058,7 +1058,7 @@ input.field.tripped:not(:hover):not(:focus) { #qr textarea { resize: both; } -#qr .captcha-section { +#qr .captcha-root { position: relative; } #qr .captcha-container > div > div { diff --git a/src/Posting/QR.captcha.coffee b/src/Posting/QR.captcha.coffee index 53921560a..c4302b385 100644 --- a/src/Posting/QR.captcha.coffee +++ b/src/Posting/QR.captcha.coffee @@ -8,17 +8,17 @@ QR.captcha = QR.captcha.sync captchas $.sync 'captchas', @sync.bind @ - section = $.el 'div', className: 'captcha-section' - $.extend section, <%= html( + root = $.el 'div', className: 'captcha-root' + $.extend root, <%= html( '
' + '' ) %> - container = $ '.captcha-container', section - counter = $ '.captcha-counter > a', section + container = $ '.captcha-container', root + counter = $ '.captcha-counter > a', root @nodes = {container, counter} @count() $.addClass QR.nodes.el, 'has-captcha' - $.after QR.nodes.com.parentNode, section + $.after QR.nodes.com.parentNode, root new MutationObserver(@afterSetup.bind @).observe container, childList: true