fix: eval slot display

This commit is contained in:
Jannat Patel
2022-05-25 13:20:39 +05:30
parent 87fe3e72a2
commit 21dad2d72e

View File

@@ -217,7 +217,7 @@ const display_slots = (e) => {
callback: (data) => {
let options = "";
data.message.forEach((obj) => {
options += `<button type="button" class="btn btn-sm btn-secondary mr-3 slot hide"
options += `<button type="button" class="btn btn-sm btn-secondary mb-3 mr-3 slot hide"
data-course="${$(e.currentTarget).data("course")}"
data-day="${obj.day}" data-start="${obj.start_time}" data-end="${obj.end_time}">
${format_time(obj.start_time)} - ${format_time(obj.end_time)}</button>`;