Stop using global function

This commit is contained in:
Paul Chavard 2018-10-02 16:52:07 +02:00
parent 5479d0eaae
commit ff405e1b2d
2 changed files with 2 additions and 11 deletions

View file

@ -63,12 +63,3 @@ function path_type_init() {
togglePathMessage(true, suggestion['mine']);
});
}
function transfer_errors_message(show) {
if(show){
$("#not_found_admin").slideDown(100)
}
else {
$("#not_found_admin").slideUp(100)
}
}

View file

@ -1,9 +1,9 @@
<%- if response.status == 404 %>
transfer_errors_message(true);
$('#not_found_admin').slideDown(100);
<%- else %>
<%= render_flash %>
transfer_errors_message(false);
$('#not_found_admin').slideUp(100);
$("#email_admin").val('');
$('[role=dialog]').modal('hide');