8 lines
287 B
Plaintext
8 lines
287 B
Plaintext
<% if @ask_question.errors.empty? %>
|
|
$('#acknowledgement').html('<p><%= t('ask.save_success') %>!</p><p><%= @ask_acknowledgement.content %></p>');
|
|
$('html,body').scrollTop(0);
|
|
<% else %>
|
|
alert('<%= @ask_question.errors.full_messages.join('\n') %>');
|
|
Recaptcha.reload()
|
|
<% end %>
|