This commit is contained in:
tianshujie
2024-04-23 16:43:26 +08:00
parent fc2fbf89d1
commit 40cd3ecb40
2 changed files with 11 additions and 2 deletions
+9 -1
View File
@@ -34,7 +34,7 @@ window.changeType = function(e)
}
}
window.changFuture = function()
window.changeFuture = function()
{
const isChecked = $('#futureDate[type="checkbox"]').prop('checked');
const $todoDate = $('#todoDate').zui('datePicker');
@@ -106,3 +106,11 @@ window.initTime = function(e)
}
});
}
window.togglePending = function(e)
{
$(e.target).closest('.input-group').find('.time-input').each(function()
{
$(this).zui('picker').render({disabled: e.target.checked});
});
}
+2 -1
View File
@@ -40,7 +40,7 @@ formBatchPanel
on::change('[data-name="type"]', 'changeType'),
on::change('.time-input', 'initTime'),
on::click('.time-check', "window.changFuture"),
on::click('.time-check', "window.togglePending"),
on::click('.form-batch-row-actions .btn', 'initTime'),
to::heading
@@ -72,6 +72,7 @@ formBatchPanel
setID('futureDate'),
set::name('futureDate'),
$lang->todo->periods['future'],
on::click('window.changeFuture')
)
)
)