Skip to content

Commit

Permalink
SAK-42789 Calendar: set end time on page load (sakaiproject#7557)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgarciaentornos authored and Miguel Pellicer committed Nov 21, 2019
1 parent 1e717e9 commit 7dc3c7d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -820,4 +820,17 @@ $(function() {
}
}
-->

#if ($timeFormat.contains("H"))
jQuery(document).ready(function(){
hour24Change('startHour24', 'startHour', 'startAmpm');
hourChange('startHour');
reflectHourToHour24('endHour24', 'endHour', 'endAmpm');
});
#else
jQuery(document).ready(function(){
minuteChange('duMinute');
minuteChange('duHour');
});
#end
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -871,4 +871,17 @@ $(function() {
}
}
-->

#if ($timeFormat.contains("H"))
jQuery(document).ready(function(){
hour24Change('startHour24', 'startHour', 'startAmpm');
hourChange('startHour');
reflectHourToHour24('endHour24', 'endHour', 'endAmpm');
});
#else
jQuery(document).ready(function(){
minuteChange('duMinute');
minuteChange('duHour');
});
#end
</script>

0 comments on commit 7dc3c7d

Please sign in to comment.