remove captcha doubling from report window
This commit is contained in:
parent
d37411368f
commit
bb911dfead
@ -5,9 +5,4 @@ Report =
|
||||
ready: ->
|
||||
field = $.id 'recaptcha_response_field'
|
||||
$.on field, 'keydown', (e) ->
|
||||
$.globalEval 'Recaptcha.reload("t")' if e.keyCode is 8 and not field.value
|
||||
$.on $('form'), 'submit', (e) ->
|
||||
e.preventDefault()
|
||||
response = field.value.trim()
|
||||
field.value = "#{response} #{response}" unless /\s/.test response
|
||||
@submit()
|
||||
$.globalEval 'Recaptcha.reload()' if e.keyCode is 8 and not field.value
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user