added offset calendar remove selection
gitea/salix/test This commit looks good
Details
gitea/salix/test This commit looks good
Details
This commit is contained in:
parent
7a7b2c67d0
commit
23ed5e4ddf
|
@ -139,15 +139,6 @@ export default class Calendar extends Component {
|
|||
return event.date >= newDate && event.date <= newDate;
|
||||
});
|
||||
|
||||
console.log(this.events);
|
||||
console.log(newDate);
|
||||
|
||||
/* if (curDate >= newDate && curDate <= newDate)
|
||||
color = 'orange'; */
|
||||
|
||||
/* if (newDate.getMonth() === this.currentMonth.getMonth() && newDate.getDay() == 6)
|
||||
color = 'light-blue'; */
|
||||
|
||||
if (newDate.getMonth() === this.currentMonth.getMonth() && newDate.getDay() == 0)
|
||||
color = 'red';
|
||||
|
||||
|
|
|
@ -116,10 +116,7 @@ class Controller {
|
|||
if (event && !event.isRemovable)
|
||||
return false;
|
||||
|
||||
// FIXME - Date offset
|
||||
let date = new Date(day.date);
|
||||
date.setHours(0, 0, 0, 0);
|
||||
dates.push(date);
|
||||
dates.push(day.date);
|
||||
|
||||
this.stMonth.removeEvent(day.date);
|
||||
this.stMonth.repaint();
|
||||
|
|
Loading…
Reference in New Issue