mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-26 15:25:03 +02:00
Merge branch '1564-Error-al-crear-módulos-SNMPv3-desde-snmpwalk-return-dev' into 'develop'
Fixed get oid See merge request artica/pandorafms!1163
This commit is contained in:
commit
5e11907963
@ -140,14 +140,19 @@ function snmpBrowserWindow () {
|
|||||||
opacity: 0.5,
|
opacity: 0.5,
|
||||||
background: "black"
|
background: "black"
|
||||||
},
|
},
|
||||||
width: 780,
|
width: 920,
|
||||||
height: 430
|
height: 500
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the form OID to the value selected in the SNMP browser
|
// Set the form OID to the value selected in the SNMP browser
|
||||||
function setOID () {
|
function setOID () {
|
||||||
|
|
||||||
|
if($('#snmp_browser_version').val() == '3'){
|
||||||
|
$('#text-snmp_oid').val($('#table1-0-1').text());
|
||||||
|
} else {
|
||||||
$('#text-snmp_oid').val($('#snmp_selected_oid').text());
|
$('#text-snmp_oid').val($('#snmp_selected_oid').text());
|
||||||
|
}
|
||||||
|
|
||||||
// Close the SNMP browser
|
// Close the SNMP browser
|
||||||
$('.ui-dialog-titlebar-close').trigger('click');
|
$('.ui-dialog-titlebar-close').trigger('click');
|
||||||
|
@ -414,14 +414,19 @@ function snmpBrowserWindow () {
|
|||||||
opacity: 0.5,
|
opacity: 0.5,
|
||||||
background: "black"
|
background: "black"
|
||||||
},
|
},
|
||||||
width: 780,
|
width: 920,
|
||||||
height: 430
|
height: 500
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the form OID to the value selected in the SNMP browser
|
// Set the form OID to the value selected in the SNMP browser
|
||||||
function setOID () {
|
function setOID () {
|
||||||
|
|
||||||
|
if($('#snmp_browser_version').val() == '3'){
|
||||||
|
$('#text-snmp_oid').val($('#table1-0-1').text());
|
||||||
|
} else {
|
||||||
$('#text-snmp_oid').val($('#snmp_selected_oid').text());
|
$('#text-snmp_oid').val($('#snmp_selected_oid').text());
|
||||||
|
}
|
||||||
|
|
||||||
// Close the SNMP browser
|
// Close the SNMP browser
|
||||||
$('.ui-dialog-titlebar-close').trigger('click');
|
$('.ui-dialog-titlebar-close').trigger('click');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user