ask module: create.js.erb

This commit is contained in:
iCross authored and chris committed 2013-06-07 13:04:00 +08:00
1 parent f3e1f4057d
commit c7effcc96c
1 file changed
+5 -1
@@ -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()