* Fix program js.

This commit is contained in:
Yagami
2020-11-18 14:58:07 +08:00
parent 568c524c85
commit ec6ced01d5
13 changed files with 81 additions and 137 deletions
+11
View File
@@ -99,6 +99,17 @@ function computeEndDate(delta)
if(!beginDate) return;
delta = parseInt(delta);
if(delta == 999)
{
$('#end').val('');
$('#end').attr('disabled', 'disabled');
return false;
}
else
{
$('#end').removeAttr('disabled');
}
beginDate = convertStringToDate(beginDate);
if((delta == 7 || delta == 14) && (beginDate.getDay() == 1))
{