WMI remote componente add text _field_wmi_n_
This commit is contained in:
parent
922fb81a58
commit
19e9613e3e
|
@ -1327,12 +1327,23 @@ function filterByText(selectbox, textbox, textNoData) {
|
||||||
function manageComponentFields(action, type) {
|
function manageComponentFields(action, type) {
|
||||||
var fieldLines = $("tr[id*=network_component-" + type + "]").length;
|
var fieldLines = $("tr[id*=network_component-" + type + "]").length;
|
||||||
var protocol = $("#module_protocol").val();
|
var protocol = $("#module_protocol").val();
|
||||||
|
let textForAdd = "";
|
||||||
|
|
||||||
if (action === "add") {
|
if (action === "add") {
|
||||||
let lineNumber = fieldLines + 1;
|
let lineNumber = fieldLines + 1;
|
||||||
let textForAdd =
|
|
||||||
type === "oid-list-pluginRow-snmpRow"
|
switch (type) {
|
||||||
? "_oid_" + lineNumber + "_"
|
case "oid-list-pluginRow-snmpRow":
|
||||||
: lineNumber;
|
textForAdd = "_oid_" + lineNumber + "_";
|
||||||
|
break;
|
||||||
|
|
||||||
|
case "oid-list-wmiRow":
|
||||||
|
textForAdd = "_field_wmi_" + lineNumber + "_";
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
textForAdd = lineNumber;
|
||||||
|
}
|
||||||
|
|
||||||
$("#network_component-manage-" + type).before(
|
$("#network_component-manage-" + type).before(
|
||||||
$("#network_component-" + type + "-row-1")
|
$("#network_component-" + type + "-row-1")
|
||||||
|
|
Loading…
Reference in New Issue