Skip to content

Commit

Permalink
working fine
Browse files Browse the repository at this point in the history
  • Loading branch information
dixita9 committed Jul 24, 2024
1 parent 6d7e894 commit 3342728
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions app/static/js/createEvents.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,8 @@ function calculateRecurringEventFrequency(){
//Requires that modal info updated before it can be saved, gives notifier if there are empty fields
let eventNameInputs = document.querySelectorAll('.multipleOfferingNameField');
let datePickerInputs = document.querySelectorAll('.multipleOfferingDatePicker');
<<<<<<< HEAD
let startTimeInputs = document.querySelectorAll('.multipleOfferingStartTime');
let endTimeInputs = document.querySelectorAll('.multipleOfferingEndTime');
=======
let startTimeInputs = document.querySelectorAll('.multipleOfferingStartTime')
let endTimeInputs = document.querySelectorAll('.multipleOfferingEndTime')
let timeCheck = false;
>>>>>>> 8d765da1cdcf823fe638678a2c675f5cb4c30bc4
let isEmpty = false;
let timeCheck = false;
eventNameInputs.forEach(eventNameInput => {
Expand All @@ -91,7 +84,6 @@ function calculateRecurringEventFrequency(){
} else {
$(datePickerInput).removeClass('border-red');
}
<<<<<<< HEAD
});

for(let i = 0; i < startTimeInputs.length; i++){
Expand All @@ -102,19 +94,6 @@ function calculateRecurringEventFrequency(){
}
console.log(timeCheck);
}
=======
});
for(let i = 0; i < startTimeInputs.length; i++)
{
if (startTimeInputs[i] >= endTimeInputs[i])
{timeCheck = true;}
}
>>>>>>> 8d765da1cdcf823fe638678a2c675f5cb4c30bc4
if (isEmpty){
$('#textNotifierPadding').addClass('pt-5');
$('.invalidFeedback').text("Event name or date field is empty");
Expand All @@ -125,29 +104,16 @@ function calculateRecurringEventFrequency(){
});
isEmpty = false;
}
<<<<<<< HEAD
else if(timeCheck){
$('#textNotifierPadding').addClass('pt-5');
$('.invalidFeedback').text("Event end time must be after start time");
=======

else if(timeCheck){
$('#textNotifierPadding').addClass('pt-5');
$('.invalidFeedback').text("End time must be after start time.");
>>>>>>> 8d765da1cdcf823fe638678a2c675f5cb4c30bc4
$('.invalidFeedback').css('display', 'block');
$('.invalidFeedback').on('animationend', function() {
$('.invalidFeedback').css('display', 'none');
$('#textNotifierPadding').removeClass('pt-5')
});
<<<<<<< HEAD
timeCheck= false;
}
=======
timeCheck = false;
}

>>>>>>> 8d765da1cdcf823fe638678a2c675f5cb4c30bc4
else {
storeMultipleOfferingEventAttributes();
pendingmultipleEvents = []
Expand Down

0 comments on commit 3342728

Please sign in to comment.