Stop using global function
This commit is contained in:
parent
5479d0eaae
commit
ff405e1b2d
2 changed files with 2 additions and 11 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue