* Fix bug #44561.
This commit is contained in:
@@ -6,9 +6,9 @@
|
||||
*/
|
||||
function computeEndDate(e)
|
||||
{
|
||||
let delta = $(e.target).val();
|
||||
let delta = $('[name=delta]:checked').val();
|
||||
let beginDate = $('input[name=begin]').val();
|
||||
if(!beginDate) return;
|
||||
if(!beginDate || !delta) return;
|
||||
|
||||
delta = currentDelta = parseInt(delta);
|
||||
beginDate = convertStringToDate(beginDate);
|
||||
@@ -64,9 +64,9 @@ function formatDate(dateString, days)
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function toggleDateBox(e)
|
||||
function toggleDateBox()
|
||||
{
|
||||
if($(e.target).prop('checked'))
|
||||
if($('[name=future]').prop('checked'))
|
||||
{
|
||||
$('#begin').attr('disabled', 'disabled');
|
||||
$('#end').attr('disabled', 'disabled').parents('.form-row').addClass('hidden');
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
$(document).on('change', 'input[name=begin],input[name=end]', function()
|
||||
{
|
||||
$("input[name='delta']").prop('checked', false);
|
||||
$("[name='delta']:checked").prop('checked', false);
|
||||
});
|
||||
|
||||
window.clickSubmit = function()
|
||||
|
||||
@@ -68,6 +68,7 @@ formPanel
|
||||
) : null,
|
||||
formRow
|
||||
(
|
||||
set::width($lastPlan ? 'full' : '1/2'),
|
||||
formGroup
|
||||
(
|
||||
set::width('1/2'),
|
||||
@@ -90,7 +91,7 @@ formPanel
|
||||
(
|
||||
formGroup
|
||||
(
|
||||
set::width('1/4'),
|
||||
set::width('1/3'),
|
||||
set::label($lang->productplan->begin),
|
||||
datepicker
|
||||
(
|
||||
@@ -102,6 +103,7 @@ formPanel
|
||||
formGroup
|
||||
(
|
||||
setClass('items-center'),
|
||||
set::width('2/3'),
|
||||
checkbox
|
||||
(
|
||||
set::name('future'),
|
||||
@@ -116,7 +118,7 @@ formPanel
|
||||
(
|
||||
formGroup
|
||||
(
|
||||
set::width('1/4'),
|
||||
set::width('1/3'),
|
||||
set::label($lang->productplan->end),
|
||||
set::control('date'),
|
||||
setID('end'),
|
||||
@@ -124,6 +126,7 @@ formPanel
|
||||
),
|
||||
formGroup
|
||||
(
|
||||
set::width('2/3'),
|
||||
radioList
|
||||
(
|
||||
set::name('delta'),
|
||||
|
||||
Reference in New Issue
Block a user