diff --git a/admin/index.html b/admin/index.html index 165b900..91a6251 100644 --- a/admin/index.html +++ b/admin/index.html @@ -828,36 +828,6 @@ settings.params.type = settings.params.type || 'tcp'; - $('#modbus_type').on('change', function () { - if ($(this).val() === 'tcp' || $(this).val() === 'tcprtu') { - $('.tcp').show(); - $('.serial').hide(); - if ($(this).val() === 'tcprtu') { - $('#modbus_slave').val(0).prop('disabled', true).trigger('change'); - } else { - $('#modbus_slave').prop('disabled', false); - } - } else { - $('.tcp').hide(); - $('.serial').show(); - $('#modbus_slave').val(0).prop('disabled', true).trigger('change'); - } - initTabs(onchange); - }).trigger('change'); - - $('#modbus_slave').on('change', function () { - if ($(this).val() === '0') { - $('#multiDeviceId').show(); - } else { - $('#multiDeviceId').hide(); - $('#modbus_multiDeviceId').prop('checked', false); - } - initTabs(onchange); - }).trigger('change'); - - $('#multiDeviceId').on('change', function () { - initTabs(onchange); - }); getIsAdapterAlive(function (isAlive) { if (isAlive || common.enabled) { @@ -999,102 +969,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Connection parameters:
- -
-
-
-
-
- -