From a7916d97381c8c0d2e17e709b728a304f805f6a6 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 12 Aug 2020 15:17:40 +0200 Subject: [PATCH] fix nm as 2nd and selectbox as 3rd parameter --- addressbook/js/app.js | 6 +++--- addressbook/js/app.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/addressbook/js/app.js b/addressbook/js/app.js index ccd2d267b4..a87ee234ef 100644 --- a/addressbook/js/app.js +++ b/addressbook/js/app.js @@ -158,10 +158,10 @@ var AddressbookApp = /** @class */ (function (_super) { * Change handler for contact / org selectbox * * @param node - * @param widget + * @param {et2_extension_nextmatch} nm + * @param {et2_selectbox} widget */ - AddressbookApp.prototype.change_grouped_view = function (node, widget) { - var nm = etemplate2_1.etemplate2.getById('addressbook-index').widgetContainer.getDOMWidgetById('nm'); + AddressbookApp.prototype.change_grouped_view = function (node, nm, widget) { var template = "addressbook.index.rows"; var value = {}; if (nm.activeFilters.sitemgr_display) { diff --git a/addressbook/js/app.ts b/addressbook/js/app.ts index 9828443ea7..5d40c3114b 100644 --- a/addressbook/js/app.ts +++ b/addressbook/js/app.ts @@ -172,11 +172,11 @@ class AddressbookApp extends EgwApp * Change handler for contact / org selectbox * * @param node - * @param widget + * @param {et2_extension_nextmatch} nm + * @param {et2_selectbox} widget */ - change_grouped_view(node, widget) + change_grouped_view(node, nm, widget) { - let nm = etemplate2.getById('addressbook-index').widgetContainer.getDOMWidgetById('nm'); let template = "addressbook.index.rows"; let value = {};