From 192e997fa8afa2a8c41b6ad9044076be0d825152 Mon Sep 17 00:00:00 2001 From: hlehoux2021 <86158657+hlehoux2021@users.noreply.github.com> Date: Sat, 11 Jan 2025 17:28:16 +0100 Subject: [PATCH] Update mySensors.js to fix addCmdToTable() changed the "id:" filter of jeedom.eqlogic.buildSelectCmd() for jeedom 4.4 compatibility --- desktop/js/mySensors.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/desktop/js/mySensors.js b/desktop/js/mySensors.js index e613df9..0a8efad 100644 --- a/desktop/js/mySensors.js +++ b/desktop/js/mySensors.js @@ -294,10 +294,9 @@ function addCmdToTable(_cmd) { tr += ''; $('#table_cmd tbody').append(tr); - //$('#table_cmd tbody tr:last').setValues(_cmd, '.cmdAttr'); - var tr = $('#table_cmd tbody tr:last'); + var tr = $('#table_cmd tbody tr').last() jeedom.eqLogic.buildSelectCmd({ - id: $(".li_eqLogic.active").attr('data-eqLogic_id'), + id: $('.eqLogicAttr[data-l1key=id]').value(), filter: { type: 'info' }, error: function (error) { $('#div_alert').showAlert({ message: error.message, level: 'danger' });