- Don't highlight birthdays in date picker (calendar & regular) though tooltip remains

- Un-highlight weeks when mouse moves off week number
This commit is contained in:
nathan 2022-05-02 13:46:55 -06:00
parent df938c79de
commit 8ef591279d
2 changed files with 5 additions and 1 deletions

View File

@ -4022,7 +4022,8 @@ body .flatpickr-calendar {
} }
/** Holidays & birthdays **/ /** Holidays & birthdays **/
div.flatpickr-calendar .calHoliday, div.flatpickr-calendar .calBirthday { div.flatpickr-calendar .calHoliday /*, div.flatpickr-calendar .calBirthday*/
{
background-color: rgba(103, 159, 210, 0.5); background-color: rgba(103, 159, 210, 0.5);
} }

View File

@ -42,6 +42,7 @@ export class SidemenuDate extends Et2Date
this._onDayCreate = this._onDayCreate.bind(this); this._onDayCreate = this._onDayCreate.bind(this);
this._handleChange = this._handleChange.bind(this); this._handleChange = this._handleChange.bind(this);
this._handleDayHover = this._handleDayHover.bind(this); this._handleDayHover = this._handleDayHover.bind(this);
this._clearHover = this._clearHover.bind(this);
this._updateGoButton = this._updateGoButton.bind(this); this._updateGoButton = this._updateGoButton.bind(this);
} }
@ -61,6 +62,7 @@ export class SidemenuDate extends Et2Date
if(this._instance.daysContainer !== undefined) if(this._instance.daysContainer !== undefined)
{ {
this._instance.weekNumbers.removeEventListener("mouseover", this._handleDayHover); this._instance.weekNumbers.removeEventListener("mouseover", this._handleDayHover);
this._instance.weekNumbers.removeEventListener("mouseout", this._clearHover);
} }
} }
@ -79,6 +81,7 @@ export class SidemenuDate extends Et2Date
if(this._instance.daysContainer !== undefined) if(this._instance.daysContainer !== undefined)
{ {
this._instance.weekNumbers.addEventListener("mouseover", this._handleDayHover); this._instance.weekNumbers.addEventListener("mouseover", this._handleDayHover);
this._instance.weekNumbers.addEventListener("mouseout", this._clearHover);
} }
// Customise next / prev buttons // Customise next / prev buttons