N°3628 - Navigation menu: Menu drawer can now be closed by clicking again on the active menu group

This commit is contained in:
Molkobain
2021-01-18 10:43:03 +01:00
parent d57e368b03
commit daba1d3bba

View File

@@ -123,7 +123,12 @@ $(function()
oEvent.preventDefault();
var sMenuGroupId = oMenuGroupElem.attr('data-menu-group-id');
this._openDrawer(sMenuGroupId);
if(this._getActiveMenuGroupId() === sMenuGroupId) {
this._closeDrawer();
}
else {
this._openDrawer(sMenuGroupId);
}
},
_onBodyClick: function(oEvent)
{