Snapshot
This commit is contained in:
parent
42c418e961
commit
001443ce11
3 changed files with 16 additions and 87 deletions
|
|
@ -220,7 +220,6 @@ export class GridManager {
|
|||
daysToShow.forEach((date, dayIndex) => {
|
||||
const column = document.createElement('swp-day-column');
|
||||
(column as any).dataset.date = this.formatDate(date);
|
||||
(column as any).dataset.dayIndex = dayIndex.toString();
|
||||
|
||||
console.log(`GridManager: Creating day column ${dayIndex} for date ${this.formatDate(date)}`);
|
||||
|
||||
|
|
@ -278,8 +277,7 @@ export class GridManager {
|
|||
eventBus.emit(EventTypes.GRID_CLICK, {
|
||||
date: (dayColumn as any).dataset.date,
|
||||
time: position.time,
|
||||
minutes: position.minutes,
|
||||
dayIndex: parseInt((dayColumn as any).dataset.dayIndex)
|
||||
minutes: position.minutes
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -296,8 +294,7 @@ export class GridManager {
|
|||
eventBus.emit(EventTypes.GRID_DBLCLICK, {
|
||||
date: (dayColumn as any).dataset.date,
|
||||
time: position.time,
|
||||
minutes: position.minutes,
|
||||
dayIndex: parseInt((dayColumn as any).dataset.dayIndex)
|
||||
minutes: position.minutes
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue