- Avoid using internal widget.options

- Optimization on getting instance from widget
This commit is contained in:
nathan 2021-09-14 14:13:22 -06:00
parent 6ed3f56c06
commit fff2849f3b

View File

@ -374,8 +374,7 @@ class AddressbookApp extends EgwApp
view_actions(_action, _widget)
{
var app_id = _widget.dom_id.split('_');
var et2 = etemplate2.getById(app_id[0]);
var et2 = _widget.getInstanceManager();
var id = et2.widgetContainer.getArrayMgr('content').data.id;
switch(_widget.id)
@ -1326,8 +1325,7 @@ class AddressbookApp extends EgwApp
*/
getWindowTitle()
{
var widget = this.et2.getWidgetById('n_fn');
if(widget) return widget.options.value;
return this.et2.getValueById('n_fn');
}
/**