Skip to content

Commit

Permalink
A modification In Calendar Date
Browse files Browse the repository at this point in the history
  • Loading branch information
ahanipeitra1994 committed Jul 30, 2020
1 parent 00eaf19 commit ff49081
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/calendar/add.php
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,10 @@ function createHolidayEvent($date, $value, $prov_id) {
if (!f.startDate.value || !f.endDate.value) {
alert('<?php echo addslashes( xl("A start date and an end date are both required for the range of vacation.") ); ?>');
return false;
} else if(new Date(f.startDate.value).getTime() > new Date(f.endDate.value).getTime()){
alert('<?php echo addslashes( xl(" End Date Must Be Greater Than Start Date") ); ?>');
return false;

}
// if provider is not chosen
var selected_option = $("#provider_id option:selected").val();
Expand Down

0 comments on commit ff49081

Please sign in to comment.