Add feedback page links to image captcha error messages.
This commit is contained in:
parent
c1fcb35225
commit
8f0598ba28
@ -68,6 +68,17 @@ Captcha.fixes =
|
|||||||
for img in @images
|
for img in @images
|
||||||
img.tabIndex = 0
|
img.tabIndex = 0
|
||||||
@addTooltips @images if @images.length is 9
|
@addTooltips @images if @images.length is 9
|
||||||
|
@complaintLinks()
|
||||||
|
|
||||||
|
complaintLinks: ->
|
||||||
|
for errmsg in $$ '.rc-imageselect-incorrect-response, .rc-imageselect-error-select-one, .rc-imageselect-error-select-more'
|
||||||
|
unless $ 'a', errmsg
|
||||||
|
link = $.el 'a',
|
||||||
|
href: 'https://www.4chan.org/feedback'
|
||||||
|
target: '_blank'
|
||||||
|
textContent: '[complain]'
|
||||||
|
$.add errmsg, [$.tn(' '), link]
|
||||||
|
return
|
||||||
|
|
||||||
addLabels: ->
|
addLabels: ->
|
||||||
imageSelect = $ '.fbc-payload-imageselect'
|
imageSelect = $ '.fbc-payload-imageselect'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user