Add tooltips showing the keys to toggle an image.
This commit is contained in:
parent
71d2460224
commit
ec61bf9d6a
@ -63,7 +63,7 @@ Captcha.fixes =
|
|||||||
@images = $$ '.rc-imageselect-target > div'
|
@images = $$ '.rc-imageselect-target > div'
|
||||||
for img in @images
|
for img in @images
|
||||||
img.tabIndex = 0
|
img.tabIndex = 0
|
||||||
return
|
@addTooltips @images if @images.length
|
||||||
|
|
||||||
addLabels: ->
|
addLabels: ->
|
||||||
imageSelect = $ '.fbc-payload-imageselect'
|
imageSelect = $ '.fbc-payload-imageselect'
|
||||||
@ -75,6 +75,12 @@ Captcha.fixes =
|
|||||||
label.dataset.col = i % 3
|
label.dataset.col = i % 3
|
||||||
label
|
label
|
||||||
$.add imageSelect, labels
|
$.add imageSelect, labels
|
||||||
|
@addTooltips labels
|
||||||
|
|
||||||
|
addTooltips: (nodes) ->
|
||||||
|
for node, i in nodes
|
||||||
|
node.title = "#{@imageKeys[i]} or #{@imageKeys[i+9].toUpperCase()}"
|
||||||
|
return
|
||||||
|
|
||||||
checkForm: (e) ->
|
checkForm: (e) ->
|
||||||
n = 0
|
n = 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user