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'
|
||||
for img in @images
|
||||
img.tabIndex = 0
|
||||
return
|
||||
@addTooltips @images if @images.length
|
||||
|
||||
addLabels: ->
|
||||
imageSelect = $ '.fbc-payload-imageselect'
|
||||
@ -75,6 +75,12 @@ Captcha.fixes =
|
||||
label.dataset.col = i % 3
|
||||
label
|
||||
$.add imageSelect, labels
|
||||
@addTooltips labels
|
||||
|
||||
addTooltips: (nodes) ->
|
||||
for node, i in nodes
|
||||
node.title = "#{@imageKeys[i]} or #{@imageKeys[i+9].toUpperCase()}"
|
||||
return
|
||||
|
||||
checkForm: (e) ->
|
||||
n = 0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user