Fix objet dans lui-même

This commit is contained in:
sladecraven 2021-01-08 08:38:30 +01:00
parent 67e95229cb
commit c4337e76a6

View File

@ -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 => {