automatic close sidebox/-bar in mobile framework when tree or favorite is clicked

This commit is contained in:
ralf 2024-09-09 10:29:30 +02:00
parent cf021014b2
commit da57a26c5a
3 changed files with 17 additions and 0 deletions

View File

@ -171,6 +171,11 @@ class AdminApp extends EgwApp
window.open(_url, '_blank'); window.open(_url, '_blank');
return; return;
} }
// check for mobile framework and close the sidebox/-bar
if (typeof framework.toggleMenu === 'function')
{
framework.toggleMenu('on');
}
var ajax : any = false; var ajax : any = false;
if (_url) if (_url)
{ {

View File

@ -1029,6 +1029,12 @@ export abstract class EgwApp
} }
if(this.dataset.id != 'add') if(this.dataset.id != 'add')
{ {
// check for mobile framework and close the sidebox/-bar
if (typeof framework.toggleMenu === 'function')
{
framework.toggleMenu('on');
}
event.stopImmediatePropagation(); event.stopImmediatePropagation();
self.setState.call(self, state); self.setState.call(self, state);
return false; return false;

View File

@ -2420,6 +2420,12 @@ app.classes.mail = AppJS.extend(
return; 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 // Check if this is a top level node and
// change profile if server has changed // change profile if server has changed
var server = _folder.split('::'); var server = _folder.split('::');