* Fix bug#13883
This commit is contained in:
@@ -110,17 +110,8 @@ function computeEndDate(delta)
|
||||
if(delta == 999)
|
||||
{
|
||||
$('#end').val(longTime);
|
||||
$('#end').attr('disabled', 'disabled');
|
||||
$('#days').attr('disabled', 'disabled');
|
||||
$('#daysBox').addClass('hidden');
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#days').removeAttr('disabled');
|
||||
$('#daysBox').removeClass('hidden');
|
||||
$('#end').removeAttr('disabled');
|
||||
}
|
||||
|
||||
beginDate = convertStringToDate(beginDate);
|
||||
if((delta == 7 || delta == 14) && (beginDate.getDay() == 1))
|
||||
|
||||
@@ -84,9 +84,8 @@
|
||||
<?php echo html::input('begin', $project->begin, "class='form-control form-date' onchange='computeWorkDays();' placeholder='" . $lang->project->begin . "' required");?>
|
||||
<span class='input-group-addon'><?php echo $lang->project->to;?></span>
|
||||
<?php
|
||||
$disabledEnd = $project->end == LONG_TIME ? 'disabled' : '';
|
||||
$end = $project->end == LONG_TIME ? $lang->project->longTime : $project->end;
|
||||
echo html::input('end', $end, "class='form-control form-date' onchange='computeWorkDays();' $disabledEnd placeholder='" . $lang->project->end . "' required");
|
||||
echo html::input('end', $end, "class='form-control form-date' onchange='computeWorkDays();' placeholder='" . $lang->project->end . "' required");
|
||||
?>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user