|
|
|
@ -164,9 +164,15 @@ $(document).ready(function () {
|
|
|
|
|
if (protocol === "") {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if (protocolLen === 0) {
|
|
|
|
|
protocolLen = protocolsRef.length;
|
|
|
|
|
}
|
|
|
|
|
var formNameNum = [0];
|
|
|
|
|
protocolsRef.children().find("select").each(function (i, v) {
|
|
|
|
|
var fieldName = $(v).attr("name");
|
|
|
|
|
var num = fieldName.split('-')[1];
|
|
|
|
|
formNameNum.push(parseInt(num));
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
var protocolLenLast = Math.max(...formNameNum);
|
|
|
|
|
protocolLen = protocolLenLast + 1;
|
|
|
|
|
var selectName = "form-" + protocolLen + "-name";
|
|
|
|
|
var selectId = "id_" + selectName;
|
|
|
|
|
var portName = "form-" + protocolLen + "-port";
|
|
|
|
|