From aa08dd8b07d50ac35dfa967ccbb2314d32f912ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=80=A1=E6=A0=8B?= Date: Mon, 7 Mar 2022 15:01:11 +0800 Subject: [PATCH] * fix bug for batch create todo. --- module/todo/js/batchcreate.js | 10 ++++++++++ module/todo/view/batchcreate.html.php | 8 +++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/module/todo/js/batchcreate.js b/module/todo/js/batchcreate.js index c46813bbf1..31c002d1b4 100644 --- a/module/todo/js/batchcreate.js +++ b/module/todo/js/batchcreate.js @@ -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(); }); diff --git a/module/todo/view/batchcreate.html.php b/module/todo/view/batchcreate.html.php index 4fb05c2e10..75442634be 100755 --- a/module/todo/view/batchcreate.html.php +++ b/module/todo/view/batchcreate.html.php @@ -85,7 +85,13 @@ - '> + + '> + + + + +