mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Etemplate - getWidgetById() can handle nested[type][names]
This commit is contained in:
parent
736b22ddde
commit
60e43ab60b
@ -425,6 +425,16 @@ var et2_widget = (function(){ "use strict"; return ClassWithAttributes.extend(
|
||||
return elem;
|
||||
}
|
||||
}
|
||||
if(this.id && _id.indexOf('[') > -1 && this._children.length)
|
||||
{
|
||||
var ids = (new et2_arrayMgr()).explodeKey(_id);
|
||||
var widget = this;
|
||||
for(var i = 0; i < ids.length && widget !== null; i++)
|
||||
{
|
||||
widget = widget.getWidgetById(ids[i]);
|
||||
}
|
||||
return widget;
|
||||
}
|
||||
|
||||
return null;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user