mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
automatic close sidebox/-bar in mobile framework when tree or favorite is clicked
This commit is contained in:
parent
cf021014b2
commit
da57a26c5a
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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;
|
||||||
|
@ -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('::');
|
||||||
|
Loading…
Reference in New Issue
Block a user