| | |
| | | // Get source day hours |
| | | const sourceData = this.getSourceDayData(dayGroup); |
| | | |
| | | console.log(sourceData); |
| | | |
| | | // Update source day info |
| | | const sourceDayEl = modal.querySelector('.source-day'); |
| | | const sourceHoursEl = modal.querySelector('.source-hours'); |
| | | |
| | | console.log('Elements: ', {sourceDayEl, sourceHoursEl}); |
| | | |
| | | if (sourceDayEl) { |
| | | sourceDayEl.textContent = window.uppercaseFirst ? |
| | |
| | | const openCheckbox = targetGroup.querySelector(`input[type="checkbox"][name="openingHours|${dayName}|isOpen"]`); |
| | | const opensInput = targetGroup.querySelector(`input[name="openingHours|${dayName}|opens"]`); |
| | | const closesInput = targetGroup.querySelector(`input[name="openingHours|${dayName}|closes"]`); |
| | | console.log('applying hours to days: ', { |
| | | openCheckbox, |
| | | opensInput, |
| | | closesInput |
| | | }); |
| | | |
| | | if (!openCheckbox) return; |
| | | |
| | | // Set checkbox state |