diff --git a/admin/index.html b/admin/index.html index 2a0744c..0fe14aa 100644 --- a/admin/index.html +++ b/admin/index.html @@ -160,40 +160,6 @@ var attempts = 0; var ignoreDialog = 0; - function getComPorts(actualValue) { - var timeout = setTimeout(function () { - getComPorts(actualValue); - }, 2000); - - sendTo(null, 'listUart', null, function (list) { - if (timeout) { - clearTimeout(timeout); - timeout = null; - } - if (!list || !list.length) { - attempts++; - if (attempts < 10) { - setTimeout(function () { - getComPorts(actualValue); - }, 1000); - } - return; - } - var $comName = $('#modbus_comName'); - var text = ''; - for (var j = 0; j < list.length; j++) { - if (list[j].comName === 'Not available') { - text = ''; - $comName.prop('disabled', true); - break; - } else { - text += ''; - } - } - $comName.html(text); - }); - } - function getExport(data, id, delimiter) { delimiter = delimiter || '\t'; var text = ''; @@ -913,7 +879,7 @@ getIsAdapterAlive(function (isAlive) { if (isAlive || common.enabled) { - getComPorts(settings.params.comName); +// } });