Auto collaspse bottom nav bar

This commit is contained in:
Benjamin Renard 2014-07-23 02:45:38 +02:00
parent f149b98cd3
commit bea5709efd

View file

@ -68,6 +68,12 @@ navbar_collapse_hide=function() {
} }
} }
bottom_navbar_collapse_hide=function() {
if ($('#bottom-navbar-collapse-1').hasClass('in')) {
$('#bottom-navbar-collapse-1').collapse('hide');
}
}
/**************** /****************
* Parts * Parts
****************/ ****************/
@ -198,6 +204,7 @@ on_categories_group_btn_click=function(e) {
group=groups[$('#view-group').data('uuid')]; group=groups[$('#view-group').data('uuid')];
$('#view-group-categories').data('group-uuid',$('#view-group').data('uuid')); $('#view-group-categories').data('group-uuid',$('#view-group').data('uuid'));
refresh_group_categories(group); refresh_group_categories(group);
bottom_navbar_collapse_hide();
view_part('#view-group-categories'); view_part('#view-group-categories');
} }
@ -298,6 +305,7 @@ on_categories_group_add_btn_click=function(e) {
on_trash_group_btn_click=function(e) { on_trash_group_btn_click=function(e) {
group=groups[$('#view-group').data('uuid')]; group=groups[$('#view-group').data('uuid')];
contributor_email=$('#view-group #contributor')[0].value; contributor_email=$('#view-group #contributor')[0].value;
bottom_navbar_collapse_hide();
view_group_trash(group,contributor_email); view_group_trash(group,contributor_email);
} }
@ -663,6 +671,7 @@ display_balance=function(group) {
on_remove_group_btn_click=function(e) { on_remove_group_btn_click=function(e) {
group=groups[$('#view-group').data('uuid')]; group=groups[$('#view-group').data('uuid')];
bottom_navbar_collapse_hide();
myconfirm('Etes-vous sûre de vouloir supprimer le group '+group.name+' ?',on_confirm_remove_group,null,group); myconfirm('Etes-vous sûre de vouloir supprimer le group '+group.name+' ?',on_confirm_remove_group,null,group);
} }