|
|
|
@ -153,6 +153,21 @@ $(document).ready(function () {
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$("#hr-start-date").on('change', (e) => { |
|
|
|
|
let start_date = new Date($("#hr-start-date").val()); |
|
|
|
|
if (start_date < activityEarlyStart || start_date > activityEarlyFinish) { |
|
|
|
|
gantt.alert("Start date should be inside activity date range !"); |
|
|
|
|
$("#hr-start-date").val(""); |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
$("#hr-end-date").on('change', (e) => { |
|
|
|
|
let end_date = new Date($("#hr-end-date").val()); |
|
|
|
|
if (end_date < activityEarlyStart || end_date > activityEarlyFinish) { |
|
|
|
|
gantt.alert("End date should be inside activity date range !"); |
|
|
|
|
$("#hr-end-date").val(""); |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
$("#form-assign-hr").on('submit', function (e) { |
|
|
|
|
e.preventDefault(); |
|
|
|
|