mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:04:53 +01:00
Api: Fix sidebox category expand/collapse on click, broken in 45e477f0c0
This commit is contained in:
parent
b32727df9b
commit
a615b2dd9c
@ -878,7 +878,7 @@ function egw_fw_ui_category(_contDiv, _name, _title, _content, _callback, _anima
|
||||
this.headerDiv._parent = this;
|
||||
jQuery(this.headerDiv).on("click keydown",
|
||||
function(e) {
|
||||
if([EGW_KEY_ENTER, EGW_KEY_SPACE].indexOf(e.which) == -1) return;
|
||||
if(e.type == "keydown" && [EGW_KEY_ENTER, EGW_KEY_SPACE].indexOf(e.which) == -1) return;
|
||||
if (!jQuery(this).hasClass('egw_fw_ui_category_active'))
|
||||
{
|
||||
this._parent.open(false);
|
||||
|
Loading…
Reference in New Issue
Block a user