From c7effcc96cbcaca8be8a287425be623e1ee22bab Mon Sep 17 00:00:00 2001 From: iCross Date: Thu, 30 May 2013 17:58:52 +0800 Subject: [PATCH] ask module: create.js.erb --- .../views/panel/ask/front_end/ask_questions/create.js.erb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vendor/built_in_modules/ask/app/views/panel/ask/front_end/ask_questions/create.js.erb b/vendor/built_in_modules/ask/app/views/panel/ask/front_end/ask_questions/create.js.erb index 9570bf0a4..9bb7aee69 100644 --- a/vendor/built_in_modules/ask/app/views/panel/ask/front_end/ask_questions/create.js.erb +++ b/vendor/built_in_modules/ask/app/views/panel/ask/front_end/ask_questions/create.js.erb @@ -1,6 +1,10 @@ <% if @ask_question.errors.empty? %> - $('#acknowledgement').html('<%= j simple_format(@ask_acknowledgement.content) %>'); $('html,body').scrollTop(0); + $('#acknowledgement') + .html('<%= j simple_format(@ask_acknowledgement.content) %>') + .fadeIn(600) + .delay(3000) + .fadeOut(600); <% else %> alert('<%= @ask_question.errors.full_messages.join('\n') %>'); Recaptcha.reload()