* fix bug for batch create todo.

This commit is contained in:
王怡栋
2022-03-07 15:01:11 +08:00
parent 36b4af1756
commit aa08dd8b07
2 changed files with 17 additions and 1 deletions
+10
View File
@@ -15,4 +15,14 @@ function updateAction(date)
$(function()
{
setBeginsAndEnds();
$('.main-header #date').change(function()
{
$('#todoBatchAddForm #date').val($(this).val());
});
$('.main-header #switchDate').change(function()
{
var value = $(this).prop('checked') ? 'on' : '';
$('#todoBatchAddForm #switchDate').val(value);
});
$('.main-header #date').change();
});
+7 -1
View File
@@ -85,7 +85,13 @@
<?php endfor;?>
</tbody>
<tfoot>
<tr><td class='text-center form-actions' colspan='<?php echo isset($visibleFields['beginAndEnd']) ? $columns + 1 : $columns;?>'><?php echo html::submitButton() . html::backButton();?></td></tr>
<tr>
<td class='text-center form-actions' colspan='<?php echo isset($visibleFields['beginAndEnd']) ? $columns + 1 : $columns;?>'>
<?php echo html::hidden('date');?>
<?php echo html::hidden('switchDate');?>
<?php echo html::submitButton() . html::backButton();?>
</td>
</tr>
</tfoot>
</table>
</form>