From 789f605938326b3af691067bbebca4286007eaaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E8=BF=9B?= Date: Thu, 8 Nov 2018 01:25:31 +0800 Subject: [PATCH] Update index.html --- admin/index.html | 126 ----------------------------------------------- 1 file changed, 126 deletions(-) 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:
- -
-
-
-
-
- -