Commit 654022f0 by =

fix when hour < 10 & table overflow

parent b8a6ec64
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
} }
.table-responsive { .table-responsive {
overflow-x: visible; overflow-x: auto;
} }
.doodle-table thead tr th, .doodle-table tbody tr td { .doodle-table thead tr th, .doodle-table tbody tr td {
......
...@@ -827,24 +827,20 @@ ...@@ -827,24 +827,20 @@
this.eventAddHour = (e) => { this.eventAddHour = (e) => {
e.stopImmediatePropagation(); 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) { if (splitHour[0].length === 1) {
let goodHourFormat = '0' + splitHour[0]; val = "0" + val;
if (this.keyExist(goodHourFormat)) { }
this.hours.push(goodHourFormat);
} if (this.keyExist(val)) {
} else { if (splitHour[1] === '00') {
if (this.keyExist(e.time.value)) { if (this.keyExist(splitHour[0])) {
//Ajout dans le bon format DD dans le tableau, supprime les 00 en trop this.hours.push(splitHour[0]);
if (splitHour[1] === '00') {
if (this.keyExist(splitHour[0])) {
this.hours.push(splitHour[0]);
}
} else {
this.hours.push(e.time.value);
} }
} else {
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