* Fix bug #45092.
This commit is contained in:
@@ -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});
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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')
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user