mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 02:28:44 +02:00
N°3628 - Navigation menu: Menu drawer can now be closed by clicking again on the active menu group
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user