diff --git a/api/js/etemplate/et2_extension_nextmatch.ts b/api/js/etemplate/et2_extension_nextmatch.ts index 4d9b245218..4f3a098805 100644 --- a/api/js/etemplate/et2_extension_nextmatch.ts +++ b/api/js/etemplate/et2_extension_nextmatch.ts @@ -3846,7 +3846,7 @@ export class et2_nextmatch_header_bar extends et2_DOMWidget implements et2_INext } if(_sender == this.favorites) { - return egwIsMobile() ? this.search_box.find('.nm_favorites_div').show() : this.right_div; + return egwIsMobile() ? this.search_box.find('.nm_favorites_div').show()[0] : this.right_div[0]; } if(_sender.id == 'export') { @@ -3863,14 +3863,6 @@ export class et2_nextmatch_header_bar extends et2_DOMWidget implements et2_INext } } } - - for(let header of this.headers) - { - if(header && header.getDOMNode && header.getDOMNode(_sender)) - { - return header.getDOMNode(_sender); - } - } return null; }