* fix bug for batch create todo.
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user