CHANGE: finalized user auth + added booking edit view
This commit is contained in:
12
Backend/static/script.js
Normal file
12
Backend/static/script.js
Normal file
@@ -0,0 +1,12 @@
|
||||
function editDay(element, event, formId) {
|
||||
var form = element
|
||||
.closest(".grid-cols-subgrid")
|
||||
.querySelector(".time-component > form");
|
||||
form.classList.toggle("edit");
|
||||
element.classList.toggle("edit");
|
||||
if (element.classList.contains("edit")) {
|
||||
event.preventDefault();
|
||||
} else {
|
||||
form.submit();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user