+

Hide navbar before to show scases trash

Benjamin Renard [2017-09-17 18:04:30]
Hide navbar before to show scases trash
Filename
public_html/inc/main.js
diff --git a/public_html/inc/main.js b/public_html/inc/main.js
index bea4b5c..27c454c 100644
--- a/public_html/inc/main.js
+++ b/public_html/inc/main.js
@@ -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);
ViewGit