captcha-section -> captcha-root
This commit is contained in:
parent
fcc1a60d51
commit
0baec018e9
@ -1058,7 +1058,7 @@ input.field.tripped:not(:hover):not(:focus) {
|
|||||||
#qr textarea {
|
#qr textarea {
|
||||||
resize: both;
|
resize: both;
|
||||||
}
|
}
|
||||||
#qr .captcha-section {
|
#qr .captcha-root {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
#qr .captcha-container > div > div {
|
#qr .captcha-container > div > div {
|
||||||
|
|||||||
@ -8,17 +8,17 @@ QR.captcha =
|
|||||||
QR.captcha.sync captchas
|
QR.captcha.sync captchas
|
||||||
$.sync 'captchas', @sync.bind @
|
$.sync 'captchas', @sync.bind @
|
||||||
|
|
||||||
section = $.el 'div', className: 'captcha-section'
|
root = $.el 'div', className: 'captcha-root'
|
||||||
$.extend section, <%= html(
|
$.extend root, <%= html(
|
||||||
'<div class="captcha-container"></div>' +
|
'<div class="captcha-container"></div>' +
|
||||||
'<div class="captcha-counter"><a href="javascript:;"></a></div>'
|
'<div class="captcha-counter"><a href="javascript:;"></a></div>'
|
||||||
) %>
|
) %>
|
||||||
container = $ '.captcha-container', section
|
container = $ '.captcha-container', root
|
||||||
counter = $ '.captcha-counter > a', section
|
counter = $ '.captcha-counter > a', root
|
||||||
@nodes = {container, counter}
|
@nodes = {container, counter}
|
||||||
@count()
|
@count()
|
||||||
$.addClass QR.nodes.el, 'has-captcha'
|
$.addClass QR.nodes.el, 'has-captcha'
|
||||||
$.after QR.nodes.com.parentNode, section
|
$.after QR.nodes.com.parentNode, root
|
||||||
|
|
||||||
new MutationObserver(@afterSetup.bind @).observe container,
|
new MutationObserver(@afterSetup.bind @).observe container,
|
||||||
childList: true
|
childList: true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user