* Change toString to zui function.

This commit is contained in:
Yagami
2020-11-18 15:33:23 +08:00
parent 92b7885a8f
commit 460947ebce
7 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ function computeEndDate(delta)
delta = (weekend == 2) ? (delta - 2) : (delta - 1);
}
endDate = beginDate.addDays(delta - 1).toString('yyyy-MM-dd');
endDate = $.zui.formatDate(beginDate.addDays(delta - 1), 'yyyy-MM-dd');
$('#end').val(endDate).datetimepicker('update');
computeWorkDays();
}
+1 -1
View File
@@ -118,7 +118,7 @@
</div>
</td>
<?php $deltaValue = $project->end == '2059-12-31' ? 999 : '';?>
<td colspan='2'><?php echo html::radio('delta', $lang->program->endList , '', "onclick='computeEndDate(this.value)'");?></td>
<td colspan='2'><?php echo html::radio('delta', $lang->program->endList , $deltaValue, "onclick='computeEndDate(this.value)'");?></td>
</tr>
<?php if($project->model == 'scrum'):?>
<tr>