mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
- Avoid using internal widget.options
- Optimization on getting instance from widget
This commit is contained in:
parent
6ed3f56c06
commit
fff2849f3b
@ -374,8 +374,7 @@ class AddressbookApp extends EgwApp
|
|||||||
view_actions(_action, _widget)
|
view_actions(_action, _widget)
|
||||||
{
|
{
|
||||||
|
|
||||||
var app_id = _widget.dom_id.split('_');
|
var et2 = _widget.getInstanceManager();
|
||||||
var et2 = etemplate2.getById(app_id[0]);
|
|
||||||
var id = et2.widgetContainer.getArrayMgr('content').data.id;
|
var id = et2.widgetContainer.getArrayMgr('content').data.id;
|
||||||
|
|
||||||
switch(_widget.id)
|
switch(_widget.id)
|
||||||
@ -1326,8 +1325,7 @@ class AddressbookApp extends EgwApp
|
|||||||
*/
|
*/
|
||||||
getWindowTitle()
|
getWindowTitle()
|
||||||
{
|
{
|
||||||
var widget = this.et2.getWidgetById('n_fn');
|
return this.et2.getValueById('n_fn');
|
||||||
if(widget) return widget.options.value;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user