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' });