mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Merge branch 'ent-7766-query-extra-fields-componentes-remotos-wmi' into 'develop'
WMI remote componente add text _field_wmi_n_ See merge request artica/pandorafms!4286
This commit is contained in:
commit
08fe77ddaa
@ -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…
x
Reference in New Issue
Block a user