From fff2849f3b55d321129dea02af8a4e89a5a2e128 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 14 Sep 2021 14:13:22 -0600 Subject: [PATCH] - Avoid using internal widget.options - Optimization on getting instance from widget --- addressbook/js/app.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/addressbook/js/app.ts b/addressbook/js/app.ts index aaab7ae9a4..cc6de117c3 100644 --- a/addressbook/js/app.ts +++ b/addressbook/js/app.ts @@ -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'); } /**