diff --git a/admin/js/app.ts b/admin/js/app.ts index 45d2235153..75d3a197e1 100644 --- a/admin/js/app.ts +++ b/admin/js/app.ts @@ -171,6 +171,11 @@ class AdminApp extends EgwApp window.open(_url, '_blank'); return; } + // check for mobile framework and close the sidebox/-bar + if (typeof framework.toggleMenu === 'function') + { + framework.toggleMenu('on'); + } var ajax : any = false; if (_url) { diff --git a/api/js/jsapi/egw_app.ts b/api/js/jsapi/egw_app.ts index 6c466beb6a..c2c7438dd1 100644 --- a/api/js/jsapi/egw_app.ts +++ b/api/js/jsapi/egw_app.ts @@ -1027,6 +1027,12 @@ export abstract class EgwApp } if(this.dataset.id != 'add') { + // check for mobile framework and close the sidebox/-bar + if (typeof framework.toggleMenu === 'function') + { + framework.toggleMenu('on'); + } + event.stopImmediatePropagation(); self.setState.call(self, state); return false; diff --git a/mail/js/app.js b/mail/js/app.js index 86ccb6e150..5a0560ee14 100755 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -2420,6 +2420,12 @@ app.classes.mail = AppJS.extend( return; } + // check for mobile framework and close the sidebox/-bar + if (typeof framework.toggleMenu === 'function') + { + framework.toggleMenu('on'); + } + // Check if this is a top level node and // change profile if server has changed var server = _folder.split('::');