diff --git a/module/rdd-calendrier.js b/module/rdd-calendrier.js index 2435c864..079640c6 100644 --- a/module/rdd-calendrier.js +++ b/module/rdd-calendrier.js @@ -154,7 +154,7 @@ export class RdDCalendrier extends Application { } /* -------------------------------------------- */ - incrementTime(heure, minute = 0) { + incrementTime(minute = 0) { this.calendrier.minutesRelative += minute; if (this.calendrier.minutesRelative >= 120 ) { this.calendrier.minutesRelative -= 120; @@ -393,32 +393,32 @@ export class RdDCalendrier extends Application { html.find('#calendar-btn-1min').click(ev => { ev.preventDefault(); - this.incrementTime(0, 1); + this.incrementTime(1); this.updateDisplay(); }); html.find('#calendar-btn-5min').click(ev => { ev.preventDefault(); - this.incrementTime(0, 5); + this.incrementTime(5); this.updateDisplay(); }); html.find('#calendar-btn-10min').click(ev => { ev.preventDefault(); - this.incrementTime(0, 10); + this.incrementTime(10); this.updateDisplay(); }); html.find('#calendar-btn-20min').click(ev => { ev.preventDefault(); - this.incrementTime(0, 20); + this.incrementTime(20); this.updateDisplay(); }); html.find('#calendar-btn-30min').click(ev => { ev.preventDefault(); - this.incrementTime(0, 30); + this.incrementTime(30); this.updateDisplay(); }); html.find('#calendar-btn-1heure').click(ev => { ev.preventDefault(); - this.incrementTime(2, 0); + this.incrementTime(120); this.updateDisplay(); }); html.find('#calendar-btn-vaisseau').click(ev => {