2016-07-18 09:37:22 +02:00
|
|
|
<% if flash.empty? %>
|
|
|
|
$('.row.etape.etape_2').hide(300, render_new_siret);
|
|
|
|
$('.row.etape.etape_2').slideDown(400, the_terms);
|
|
|
|
toggle_etape_1();
|
|
|
|
<% else %>
|
2016-06-20 13:57:57 +02:00
|
|
|
error_form_siret('<%= invalid_siret %>');
|
|
|
|
<% end %>
|
2016-07-18 09:37:22 +02:00
|
|
|
|
|
|
|
<% flash.clear %>
|
|
|
|
|
|
|
|
function render_new_siret(){
|
|
|
|
$('.row.etape.etape_2').html("<%= escape_javascript(render partial: '/dossiers/etapes/etape2', locals: { facade: @facade } ) %>");
|
|
|
|
}
|