ask module: create.js.erb
This commit is contained in:
parent
f3e1f4057d
commit
c7effcc96c
|
@ -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()
|
||||
|
|
Reference in New Issue