diff --git a/module/project/js/common.js b/module/project/js/common.js index 7e2ab51d43..95f4fc6938 100644 --- a/module/project/js/common.js +++ b/module/project/js/common.js @@ -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)) diff --git a/module/project/view/edit.html.php b/module/project/view/edit.html.php index 2073c73d08..0b13439bb1 100644 --- a/module/project/view/edit.html.php +++ b/module/project/view/edit.html.php @@ -84,9 +84,8 @@ begin, "class='form-control form-date' onchange='computeWorkDays();' placeholder='" . $lang->project->begin . "' required");?> project->to;?> 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"); ?>