Hide navbar before to show scases trash

This commit is contained in:
Benjamin Renard 2017-09-17 20:04:30 +02:00
parent dcf7b56163
commit 8b4425ab2a

View file

@ -779,6 +779,12 @@ show_scases_trash=function() {
show_menu('scases');
}
on_scases_trash_btn=function(e) {
e.preventDefault();
navbar_collapse_hide();
show_scases_trash();
}
clear_page=function(new_content) {
if (new_content) {
$('#content').html(new_content);
@ -889,7 +895,7 @@ $( document ).ready( function() {
$("#add_scase_modal").on('hidden.bs.modal',on_close_add_scase_modal);
$("#add_scase_modal form").bind('submit',on_valid_add_scase_modal);
$('#scases_trash_btn').bind('click',show_scases_trash);
$('#scases_trash_btn').bind('click',on_scases_trash_btn);
$('#rename_scase_btn').bind('click',on_rename_scase_btn_click);
$('#rename_scase_submit').bind('click',on_valid_rename_scase_modal);