Add function navbar_collapse_hide()
This commit is contained in:
parent
383e37a792
commit
e93c2445c3
1 changed files with 9 additions and 3 deletions
12
inc/myco.js
12
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,7 +59,13 @@ on_close_add_group_modal=function () {
|
|||
****************/
|
||||
on_group_choice_click=function(e) {
|
||||
view_group(groups[$(e.target).html()]);
|
||||
$('#navbar-groupe-collapse').collapse('hide');
|
||||
navbar_collapse_hide();
|
||||
}
|
||||
|
||||
navbar_collapse_hide=function() {
|
||||
if ($('#navbar-groupe-collapse').hasClass('in')) {
|
||||
$('#navbar-groupe-collapse').collapse('hide');
|
||||
}
|
||||
}
|
||||
|
||||
/****************
|
||||
|
@ -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