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');
return;
}
// check for mobile framework and close the sidebox/-bar
if (typeof framework.toggleMenu === 'function')
{
framework.toggleMenu('on');
}
var ajax : any = false;
if (_url)
{

View File

@ -1029,6 +1029,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;

View File

@ -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('::');