mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 01:43:47 +01:00
Admin - make sure correct tree leaf gets selected when loading
This commit is contained in:
parent
60e43ab60b
commit
4b354022cb
@ -66,6 +66,7 @@ app.classes.admin = AppJS.extend(
|
|||||||
this.iframe = null;
|
this.iframe = null;
|
||||||
this.nm = null;
|
this.nm = null;
|
||||||
this.acl_dialog = null;
|
this.acl_dialog = null;
|
||||||
|
this.tree = null;
|
||||||
|
|
||||||
// call parent
|
// call parent
|
||||||
this._super.apply(this, arguments);
|
this._super.apply(this, arguments);
|
||||||
@ -92,6 +93,7 @@ app.classes.admin = AppJS.extend(
|
|||||||
this.groups = this.et2.getWidgetById('groups');
|
this.groups = this.et2.getWidgetById('groups');
|
||||||
this.groups.set_disabled(true);
|
this.groups.set_disabled(true);
|
||||||
this.ajax_target = this.et2.getWidgetById('ajax_target');
|
this.ajax_target = this.et2.getWidgetById('ajax_target');
|
||||||
|
this.tree = this.et2.getWidgetById('tree');
|
||||||
if (iframe)
|
if (iframe)
|
||||||
{
|
{
|
||||||
var self = this;
|
var self = this;
|
||||||
@ -173,6 +175,12 @@ app.classes.admin = AppJS.extend(
|
|||||||
{
|
{
|
||||||
this.iframe.set_src(_url);
|
this.iframe.set_src(_url);
|
||||||
}
|
}
|
||||||
|
var m = _url.match(/menuaction=([^&]+)(?:.*appname=(\w+))?/)
|
||||||
|
if(m.length >= 2)
|
||||||
|
{
|
||||||
|
var app = m[2] ? m[2] : m[1].split('.')[0];
|
||||||
|
this.tree.set_value('/apps/'+app+'/'+m[1]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user