From 8a9c8fc17f9a9a2d621306631a1261cf050efae6 Mon Sep 17 00:00:00 2001 From: bohung Date: Thu, 13 Oct 2022 13:14:46 +0800 Subject: [PATCH] Add espeak for catcha.(for accessibility) --- app/controllers/asks_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/asks_controller.rb b/app/controllers/asks_controller.rb index 1774bce..f44ee5f 100644 --- a/app/controllers/asks_controller.rb +++ b/app/controllers/asks_controller.rb @@ -401,7 +401,7 @@ class AsksController < ApplicationController end f1['content'] = "
#{text_field_tag(field_name,nil,placeholder: placeholder,data: {format: 'yyyy/MM/dd hh:mm'},required: required, id: "ask_question_appointment_#{@appointment_idx}")}
" 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