* project: stop compute end date if the period radios didn't be checked.

This commit is contained in:
liugang
2023-11-16 17:16:20 +08:00
parent fec0e910e5
commit 2e912e91ef
+3 -1
View File
@@ -119,7 +119,9 @@ function computeEndDate()
const beginDate = $('#begin').zui('datePicker').$.state.value;
if(!beginDate) return;
const delta = parseInt($('input[name=delta]:checked').val());
const delta = parseInt($('input[name=delta]:checked').val());
if(isNaN(delta)) return;
const isLongTime = delta == 999;
const endDate = isLongTime ? LONG_TIME : formatDate(beginDate, delta - 1);