Add espeak for catcha.(for accessibility)

This commit is contained in:
BoHung Chiu 2022-10-13 13:14:46 +08:00
parent 7828d0d3ea
commit 8a9c8fc17f
1 changed files with 1 additions and 1 deletions

View File

@ -401,7 +401,7 @@ class AsksController < ApplicationController
end
f1['content'] = "<div class=\"default_picker\">#{text_field_tag(field_name,nil,placeholder: placeholder,data: {format: 'yyyy/MM/dd hh:mm'},required: required, id: "ask_question_appointment_#{@appointment_idx}")}</div>"
when 'recaptcha'
f1['content'] = "#{gotcha_error}#{gotcha}"
f1['content'] = "#{gotcha_error(:espeak=>true)}#{gotcha}"
when 'usage_rule'
next if ask_setting.usage_rule.blank?
f1['content'] = ask_setting.usage_rule