Merge branch 'ent-11693-15876-inverse-interval-no-se-activa-para-modulos-web-server-de-tipo-string' into 'develop'
Ent 11693 15876 inverse interval no se activa para modulos web server de tipo string See merge request artica/pandorafms!6218
This commit is contained in:
commit
f692dd4c7d
|
@ -1847,6 +1847,22 @@ $(document).ready (function () {
|
|||
setModuleType(type_name_selected);
|
||||
});
|
||||
|
||||
$('#checkbox-warning_inverse_string').change( function () {
|
||||
if ($(this).prop('checked') === true) {
|
||||
$('input[name="warning_thresholds_checks"]').val('warning_inverse');
|
||||
} else {
|
||||
$('input[name="warning_thresholds_checks"]').val('normal_warning');
|
||||
}
|
||||
});
|
||||
|
||||
$('#checkbox-critical_inverse_string').change( function () {
|
||||
if ($(this).prop('checked') === true) {
|
||||
$('input[name="critical_thresholds_checks"]').val('critical_inverse');
|
||||
} else {
|
||||
$('input[name="critical_thresholds_checks"]').val('normal_critical');
|
||||
}
|
||||
});
|
||||
|
||||
function setModuleType(type_name_selected) {
|
||||
if (type_name_selected.match(/_string$/) == null) {
|
||||
// Hide string fields.
|
||||
|
|
Loading…
Reference in New Issue