Skip to content

Commit

Permalink
Ran grunt
Browse files Browse the repository at this point in the history
  • Loading branch information
hansmorb committed Jan 16, 2025
1 parent cce9648 commit 9cb2c50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions assets/admin/js/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,10 @@
let locationInput = $("#location-id");
let startDateInput = $("#repetition-start_date");
let bookingCodeInput = $("#_cb_bookingcode");

// check if this is loaded on right kind of backend page
let allExist = [
fullDayCheckbox, startTimeInput, endTimeInput, itemInput, locationInput, startDateInput, bookingCodeInput
].every(domElement => domElement.length === 1);

let allExist = [ fullDayCheckbox, startTimeInput, endTimeInput, itemInput, locationInput, startDateInput, bookingCodeInput ].every(domElement => domElement.length === 1);
if (!allExist) {
// return early to prevent ajax calls with incorrect parameters
return;
}

fullDayCheckbox.on("change", function(event) {
if (fullDayCheckbox.is(":checked")) {
startTimeInput.val("00:00");
Expand Down
Loading

0 comments on commit 9cb2c50

Please sign in to comment.