This commit is contained in:
pika 2025-03-31 13:51:49 +02:00
parent 1ab129b798
commit af4b75acb4
3 changed files with 93 additions and 6 deletions

View file

@ -256,9 +256,10 @@
const tbody = document.querySelector('#ports-table tbody');
const newRow = document.createElement('tr');
newRow.innerHTML = `
<td>
<td class="position-relative">
<input type="number" name="port_numbers[]" class="form-control"
min="1" max="65535" value="${portNumber}" required>
<div class="feedback"></div>
</td>
<td>
<select name="protocols[]" class="form-select">
@ -279,6 +280,9 @@
</td>
`;
tbody.appendChild(newRow);
// Set up validation for the new row
setTimeout(setupPortValidation, 50);
}
function removePortRow(button) {