ask module: create.js.erb
This commit is contained in:
parent
f3e1f4057d
commit
c7effcc96c
|
@ -1,6 +1,10 @@
|
||||||
<% if @ask_question.errors.empty? %>
|
<% if @ask_question.errors.empty? %>
|
||||||
$('#acknowledgement').html('<%= j simple_format(@ask_acknowledgement.content) %>');
|
|
||||||
$('html,body').scrollTop(0);
|
$('html,body').scrollTop(0);
|
||||||
|
$('#acknowledgement')
|
||||||
|
.html('<%= j simple_format(@ask_acknowledgement.content) %>')
|
||||||
|
.fadeIn(600)
|
||||||
|
.delay(3000)
|
||||||
|
.fadeOut(600);
|
||||||
<% else %>
|
<% else %>
|
||||||
alert('<%= @ask_question.errors.full_messages.join('\n') %>');
|
alert('<%= @ask_question.errors.full_messages.join('\n') %>');
|
||||||
Recaptcha.reload()
|
Recaptcha.reload()
|
||||||
|
|
Reference in New Issue