forked from extern/egroupware
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;
|
this.headerDiv._parent = this;
|
||||||
jQuery(this.headerDiv).on("click keydown",
|
jQuery(this.headerDiv).on("click keydown",
|
||||||
function(e) {
|
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'))
|
if (!jQuery(this).hasClass('egw_fw_ui_category_active'))
|
||||||
{
|
{
|
||||||
this._parent.open(false);
|
this._parent.open(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user