mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
#12424 class error input ranges warning critical
This commit is contained in:
parent
7fdca7aa12
commit
813bc4b851
@ -2368,6 +2368,9 @@ ui_require_jquery_file('json');
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if (max_c !== 0 && max_c < min_c) {
|
||||||
|
error_c = 2;
|
||||||
|
}
|
||||||
error_w = 1;
|
error_w = 1;
|
||||||
paint_graph_status(
|
paint_graph_status(
|
||||||
0, 0, 0, 0, 0, 0, error_w, error_c,
|
0, 0, 0, 0, 0, 0, error_w, error_c,
|
||||||
|
@ -1652,6 +1652,10 @@ function paint_graph_status(
|
|||||||
max_c = 0;
|
max_c = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove Error class.
|
||||||
|
$("#text-max_warning").removeClass("input_error");
|
||||||
|
$("#text-max_critical").removeClass("input_error");
|
||||||
|
|
||||||
//if haven't errors
|
//if haven't errors
|
||||||
if (error_w == 0 && error_c == 0) {
|
if (error_w == 0 && error_c == 0) {
|
||||||
//parse element
|
//parse element
|
||||||
@ -1957,6 +1961,9 @@ function paint_graph_status(
|
|||||||
.html(message_error_critical)
|
.html(message_error_critical)
|
||||||
.style("text-anchor", "first");
|
.style("text-anchor", "first");
|
||||||
}
|
}
|
||||||
|
if (error_c == 2) {
|
||||||
|
$("#text-max_critical").addClass("input_error");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user