demarches-normaliennes/app/views/admin/procedures/transfer.js.erb

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\"> <%= flash.notice.html_safe %></div>");
<% flash.clear %>
transfer_errors_message(false);
$("#email_admin").val('');
$("#transferModal button#cancel").click();
<%- end %>