mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
10646-Threshold zero value
This commit is contained in:
parent
e4b718a468
commit
e64053eb22
@ -2130,10 +2130,8 @@ function html_print_extended_select_for_time(
|
|||||||
$fields[$selected] = human_time_description_raw($selected, true);
|
$fields[$selected] = human_time_description_raw($selected, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($nothing) === true
|
hd(is_int($selected));
|
||||||
&& (empty($selected) === true
|
if (empty($nothing) === true && (is_int($selected) === true)) {
|
||||||
|| $selected === '0')
|
|
||||||
) {
|
|
||||||
$selected = 300;
|
$selected = 300;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2248,6 +2246,13 @@ function html_print_extended_select_for_time(
|
|||||||
$('#".$uniq_name."_manual').show();
|
$('#".$uniq_name."_manual').show();
|
||||||
$('#".$uniq_name."_default').hide();
|
$('#".$uniq_name."_default').hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($('#text-".$uniq_name."_text').val() === '0') {
|
||||||
|
setTimeout(() => {
|
||||||
|
$('#".$uniq_name."_manual').hide();
|
||||||
|
$('#".$uniq_name."_default').show();
|
||||||
|
}, 100);
|
||||||
|
}
|
||||||
</script>";
|
</script>";
|
||||||
$returnString = ob_get_clean();
|
$returnString = ob_get_clean();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user