Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion appointment/static/js/appointments.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ function getAvailableSlots(selectedDate, staffId = null) {
// Check if staffId is 'none', null, or undefined and display an error message
if (staffId === 'none' || staffId === null || staffId === undefined) {
console.log('No staff ID provided, displaying error message.');
const errorMessage = $('<p class="djangoAppt_no-availability-text">'+ noStaffMemberSelected + '</p>');
const errorMessage = $('<p class="djangoAppt_no-availability-text">'+ noStaffMemberSelectedTxt + '</p>');
errorMessageContainer.append(errorMessage);
// Optionally disable the submit button here
$('.btn-submit-appointment').attr('disabled', 'disabled');
Expand Down
2 changes: 1 addition & 1 deletion appointment/templates/appointment/appointments.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ <h1 class="page-title">{{ service.name }}</h1>
</script>
<script>
const requestNonAvailableSlotBtnTxt = "{% trans 'Request next available slot' %}";
const noStaffMemberSelected = "{% trans 'No staff member selected.' %}"
const noStaffMemberSelectedTxt = "{% trans 'No staff member selected.' %}"
</script>
<script src="{% static 'js/appointments.js' %}"></script>
<script src="{% static 'js/js-utils.js' %}"></script>
Expand Down