Commit 654022f0 by =

fix when hour < 10 & table overflow

parent b8a6ec64
......@@ -13,7 +13,7 @@
}
.table-responsive {
overflow-x: visible;
overflow-x: auto;
}
.doodle-table thead tr th, .doodle-table tbody tr td {
......
......@@ -827,24 +827,20 @@
this.eventAddHour = (e) => {
e.stopImmediatePropagation();
let splitHour = e.time.value.split(':');
let val = e.time.value;
let splitHour = val.split(':');
//Permet de mettre dans le bon format DD:mm, le timePicker retourne mauvais format
if (splitHour[0].length === 1) {
let goodHourFormat = '0' + splitHour[0];
if (this.keyExist(goodHourFormat)) {
this.hours.push(goodHourFormat);
val = "0" + val;
}
} else {
if (this.keyExist(e.time.value)) {
//Ajout dans le bon format DD dans le tableau, supprime les 00 en trop
if (this.keyExist(val)) {
if (splitHour[1] === '00') {
if (this.keyExist(splitHour[0])) {
this.hours.push(splitHour[0]);
}
} else {
this.hours.push(e.time.value);
}
this.hours.push(val);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment