Hide navbar before to show scases trash
Benjamin Renard

Benjamin Renard commited on 2017-09-17 18:04:30
Showing 1 changed files, with 7 additions and 1 deletions.

... ...
@@ -779,6 +779,12 @@ show_scases_trash=function() {
779 779
   show_menu('scases');
780 780
 }
781 781
 
782
+on_scases_trash_btn=function(e) {
783
+  e.preventDefault();
784
+  navbar_collapse_hide();
785
+  show_scases_trash();
786
+}
787
+
782 788
 clear_page=function(new_content) {
783 789
   if (new_content) {
784 790
     $('#content').html(new_content);
... ...
@@ -889,7 +895,7 @@ $( document ).ready( function() {
889 895
   $("#add_scase_modal").on('hidden.bs.modal',on_close_add_scase_modal);
890 896
   $("#add_scase_modal form").bind('submit',on_valid_add_scase_modal);
891 897
 
892
-  $('#scases_trash_btn').bind('click',show_scases_trash);
898
+  $('#scases_trash_btn').bind('click',on_scases_trash_btn);
893 899
 
894 900
   $('#rename_scase_btn').bind('click',on_rename_scase_btn_click);
895 901
   $('#rename_scase_submit').bind('click',on_valid_rename_scase_modal);
896 902