Add function navbar_collapse_hide()
This commit is contained in:
parent
383e37a792
commit
e93c2445c3
1 changed files with 9 additions and 3 deletions
10
inc/myco.js
10
inc/myco.js
|
@ -25,7 +25,7 @@ refresh_group_list=function() {
|
|||
****************/
|
||||
|
||||
on_click_add_group_btn=function(e) {
|
||||
$('#navbar-groupe-collapse').collapse('hide');
|
||||
navbar_collapse_hide();
|
||||
$('#add_group_modal').modal('show');
|
||||
}
|
||||
|
||||
|
@ -59,8 +59,14 @@ on_close_add_group_modal=function () {
|
|||
****************/
|
||||
on_group_choice_click=function(e) {
|
||||
view_group(groups[$(e.target).html()]);
|
||||
navbar_collapse_hide();
|
||||
}
|
||||
|
||||
navbar_collapse_hide=function() {
|
||||
if ($('#navbar-groupe-collapse').hasClass('in')) {
|
||||
$('#navbar-groupe-collapse').collapse('hide');
|
||||
}
|
||||
}
|
||||
|
||||
/****************
|
||||
* View group
|
||||
|
@ -314,7 +320,7 @@ on_contribution_edit_btn_click=function(e) {
|
|||
* Clear local data
|
||||
********************/
|
||||
clear_local_data=function() {
|
||||
$('#navbar-groupe-collapse').collapse('hide');
|
||||
navbar_collapse_hide();
|
||||
myconfirm('Etes-vous sûre de vouloir supprimer les données locales ?',on_confirm_clear_local_data);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue