From e64053eb226b7d0d6f9c9062aa9a250ca0339c66 Mon Sep 17 00:00:00 2001 From: Pablo Aragon Date: Mon, 3 Apr 2023 10:00:08 +0200 Subject: [PATCH] 10646-Threshold zero value --- pandora_console/include/functions_html.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php index 305d2c5d7d..9f4995b1c3 100644 --- a/pandora_console/include/functions_html.php +++ b/pandora_console/include/functions_html.php @@ -2130,10 +2130,8 @@ function html_print_extended_select_for_time( $fields[$selected] = human_time_description_raw($selected, true); } - if (empty($nothing) === true - && (empty($selected) === true - || $selected === '0') - ) { + hd(is_int($selected)); + if (empty($nothing) === true && (is_int($selected) === true)) { $selected = 300; } @@ -2248,6 +2246,13 @@ function html_print_extended_select_for_time( $('#".$uniq_name."_manual').show(); $('#".$uniq_name."_default').hide(); } + + if ($('#text-".$uniq_name."_text').val() === '0') { + setTimeout(() => { + $('#".$uniq_name."_manual').hide(); + $('#".$uniq_name."_default').show(); + }, 100); + } "; $returnString = ob_get_clean();