ask module: create.js.erb

This commit is contained in:
iCross 2013-05-30 17:58:52 +08:00 committed by chris
parent f3e1f4057d
commit c7effcc96c
1 changed files with 5 additions and 1 deletions

View File

@ -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()