demarches-normaliennes/app/views/admin/procedures/transfer.js.erb
2017-07-13 10:14:16 +02:00

12 lines
414 B
Text

<%- if response.status == 404 %>
transfer_errors_message(true);
<%- else %>
$("#main-container").prepend("<div class='row'><div id='flash_message'></div></div>");
$("#flash_message").prepend("<div class=\"alert alert-success\"> <%= sanitize(flash.notice) %></div>");
<% flash.clear %>
transfer_errors_message(false);
$("#email_admin").val('');
$("#transferModal button#cancel").click();
<%- end %>