Lines 149-155
function Check_page2() {
Link Here
|
149 |
} |
149 |
} |
150 |
return false; |
150 |
return false; |
151 |
} |
151 |
} |
152 |
|
152 |
// Validate that enddate is later than acqui_date |
|
|
153 |
const acquiDate = new Date($("#acqui_date").val()); |
154 |
const endDate = new Date($("input[name='enddate']").val()); |
155 |
if (endDate < acquiDate) { |
156 |
alert( __("End date must be after the first publication date") ); |
157 |
return false; |
158 |
} |
153 |
return true; |
159 |
return true; |
154 |
} |
160 |
} |
155 |
|
161 |
|
156 |
- |
|
|