https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37363

--- Comment #2 from Martin Renvoize <[email protected]> ---
This works from onDayCreate:


```
    // Make closed days unclickable (while keeping them part of the range)
    if (date.getDay() === 0 || date.getDay() === 6) {
        dayElem.classList.add("closed-day");

        // Remove the click event to disable the day
        dayElem.addEventListener('click', function(event) {
            event.stopImmediatePropagation();
        }, true);
    }
```

I'll submit the patch once I've finished work on bug 34440

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to