From 0baec018e98d64f9905c6922cd465b19c85f22c0 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Mon, 8 Dec 2014 19:13:50 -0800 Subject: [PATCH] captcha-section -> captcha-root --- src/General/css/style.css | 2 +- src/Posting/QR.captcha.coffee | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) 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