Fix bug where adding a captcha to the cache in one tab could revert captchas used or added in other tabs.

This commit is contained in:
ccd0 2017-02-05 21:56:49 -08:00
parent 792267954d
commit 9a7ebacfae

View File

@ -166,6 +166,7 @@ Captcha.v1 =
save: ->
return unless /\S/.test(response = @nodes.input.value)
@nodes.input.value = ''
$.forceSync 'captchas'
@captchas.push
challenge: @nodes.img.alt
response: response