diff --git a/vendor/built_in_modules/ask_new/app/controllers/panel/ask/front_end/ask_questions_controller.rb b/vendor/built_in_modules/ask_new/app/controllers/panel/ask/front_end/ask_questions_controller.rb index e1b65fba3..0f5191a69 100644 --- a/vendor/built_in_modules/ask_new/app/controllers/panel/ask/front_end/ask_questions_controller.rb +++ b/vendor/built_in_modules/ask_new/app/controllers/panel/ask/front_end/ask_questions_controller.rb @@ -22,15 +22,9 @@ class Panel::Ask::FrontEnd::AskQuestionsController < OrbitWidgetController Resque.enqueue(SendAskNoticeMail, ask_admin.id, @ask_question.id) end - # Render to create.js.erb - respond_to do |format| - format.js - end + redirect_to panel_ask_front_end_thank_you_path else - # Render to index.js.erb - respond_to do |format| - format.js { render :index } - end + redirect_to panel_ask_front_end_sorry_path end end diff --git a/vendor/built_in_modules/ask_new/app/views/panel/ask/front_end/ask_questions/index.html.erb b/vendor/built_in_modules/ask_new/app/views/panel/ask/front_end/ask_questions/index.html.erb index 349da3775..fdf8faf48 100644 --- a/vendor/built_in_modules/ask_new/app/views/panel/ask/front_end/ask_questions/index.html.erb +++ b/vendor/built_in_modules/ask_new/app/views/panel/ask/front_end/ask_questions/index.html.erb @@ -14,15 +14,7 @@ }