From f807406a97be430ead573f64a5bdcc25bcc52629 Mon Sep 17 00:00:00 2001 From: Thomas <101348966+tt-tom17@users.noreply.github.com> Date: Thu, 28 Dec 2023 10:23:02 +0100 Subject: [PATCH] Update NsPanelTs.ts --- ioBroker/NsPanelTs.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ioBroker/NsPanelTs.ts b/ioBroker/NsPanelTs.ts index 6680f5ee..5ff6196b 100644 --- a/ioBroker/NsPanelTs.ts +++ b/ioBroker/NsPanelTs.ts @@ -5921,9 +5921,13 @@ function HandleButtonEvent(words: any): void { let buttonAction = words[3]; let pageItemID: string = ''; - if (!isNaN(id)) {pageItemID = activePage.items[id].id}; + if (!isNaN(id)) { + pageItemID = activePage.items[id].id; + log('HandleButtonEvent activePage: ' + activePage.items.length + ' id: ' + id + ' tempid: ' + tempid + ' pageItemId: ' + pageItemID); + id = pageItemID + }; - log('HandleButtonEvent activePage: '+ activePage.items.length + ' id: ' + id + ' tempid: ' + tempid + ' pageItemId: ' + pageItemID); + if (Debug) { log('HandleButtonEvent übergebene Werte ' + words[0] + ' - ' + words[1] + ' - ' + words[2] + ' - ' + words[3] + ' - ' + words[4] + ' - PageId: ' + pageId, 'info');