ent 7914 time based status scaling components

This commit is contained in:
edu.corral 2022-11-04 09:45:06 +01:00
parent ba70e8dd0d
commit 1ff9b8c420
2 changed files with 12 additions and 6 deletions

View File

@ -204,12 +204,8 @@ $table->data[5][1] .= html_print_input_text(
$warning_time, $warning_time,
'', '',
5, 5,
255, 15,
true, true
$disabledBecauseInPolicy,
false,
'',
$classdisabledBecauseInPolicy
); );
$table->data[5][1] .= '&nbsp;&nbsp;<b>'.__('intervals in warning status.').'</b>'; $table->data[5][1] .= '&nbsp;&nbsp;<b>'.__('intervals in warning status.').'</b>';

View File

@ -170,6 +170,11 @@ function configure_modules_form() {
data["dynamic_min"] == 0 ? 0 : data["dynamic_min"] data["dynamic_min"] == 0 ? 0 : data["dynamic_min"]
); );
$("#text-warning_time").attr(
"value",
data["warning_time"] == 0 ? 0 : data["warning_time"]
);
if (data["dynamic_two_tailed"]) if (data["dynamic_two_tailed"])
$("#checkbox-dynamic_two_tailed").check(); $("#checkbox-dynamic_two_tailed").check();
else $("#checkbox-dynamic_two_tailed").uncheck(); else $("#checkbox-dynamic_two_tailed").uncheck();
@ -461,6 +466,11 @@ function configure_modules_form() {
$("#post_process_default").hide(); $("#post_process_default").hide();
} }
$("#text-warning_time").attr(
"value",
data["warning_time"] == 0 ? 0 : data["warning_time"]
);
$("#text-post_process_text").attr( $("#text-post_process_text").attr(
"value", "value",
data["post_process"] == 0 ? 0 : data["post_process"] data["post_process"] == 0 ? 0 : data["post_process"]