Skip to content

Commit

Permalink
UI oversight fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ojmakinde committed Nov 6, 2024
1 parent ecde1f6 commit 07a4b84
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/static/js/createEvents.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ function verifyRepeatingFields(){

function loadOfferingsToModal(){
let offerings = JSON.parse($("#seriesData").val())
if (offerings.length < 1) {return;}
let isRepeatingStatus = $("#checkIsRepeating").is(":checked");
if (isRepeatingStatus) {$("#generatedEvents").removeClass("d-none"); $("#generatedEventsTable tbody tr").remove();};
offerings.forEach((offering, i) =>{
Expand Down Expand Up @@ -403,9 +404,12 @@ $(".startDatePicker").change(function () {
modalOpenedByEditButton = ($(this).attr('id') === 'edit_modal');

if (isSeries) {
if (verifyRepeatingFields){
if (verifyRepeatingFields()){
handleRepeatingEventsChange()
}
else{
$("#generatedEvents").addClass("d-none");
}
setViewForSeries();
loadOfferingsToModal();
$('#modalSeries').modal('show');
Expand Down

0 comments on commit 07a4b84

Please sign in to comment.