#12424 class error input ranges warning critical

This commit is contained in:
Jonathan 2023-11-13 09:49:19 +01:00
parent 7fdca7aa12
commit 813bc4b851
2 changed files with 10 additions and 0 deletions

View File

@ -2368,6 +2368,9 @@ ui_require_jquery_file('json');
);
}
} else {
if (max_c !== 0 && max_c < min_c) {
error_c = 2;
}
error_w = 1;
paint_graph_status(
0, 0, 0, 0, 0, 0, error_w, error_c,

View File

@ -1652,6 +1652,10 @@ function paint_graph_status(
max_c = 0;
}
// Remove Error class.
$("#text-max_warning").removeClass("input_error");
$("#text-max_critical").removeClass("input_error");
//if haven't errors
if (error_w == 0 && error_c == 0) {
//parse element
@ -1957,6 +1961,9 @@ function paint_graph_status(
.html(message_error_critical)
.style("text-anchor", "first");
}
if (error_c == 2) {
$("#text-max_critical").addClass("input_error");
}
}
}