Fix bug on attack calculator
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 1.11.4 (2026-12-03)
|
||||||
|
|
||||||
|
- correction du bug sur le calculateur
|
||||||
|
|
||||||
## 1.11.3 (2026-11-21)
|
## 1.11.3 (2026-11-21)
|
||||||
|
|
||||||
- ajout du calculateur de trajet vers un nouvel onglet
|
- ajout du calculateur de trajet vers un nouvel onglet
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 3,
|
"manifest_version": 3,
|
||||||
"name": "KAplus",
|
"name": "KAplus",
|
||||||
"version": "1.11.3",
|
"version": "1.11.4",
|
||||||
|
|
||||||
"developer": {
|
"developer": {
|
||||||
"name": "Samuel Campos",
|
"name": "Samuel Campos",
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
"firefox"
|
"firefox"
|
||||||
],
|
],
|
||||||
"release_notes": {
|
"release_notes": {
|
||||||
"fr": "- ajout du calculateur de trajet vers un nouvel onglet",
|
"fr": "- correction du bug sur le calculateur",
|
||||||
"en-US": "- add travel calculator in new tab"
|
"en-US": "- fix bug on attack calculator"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -463,10 +463,16 @@ function showSecondsAndCalculator() {
|
|||||||
let table = contentPane.getElementsByClassName("borderlist")[0];
|
let table = contentPane.getElementsByClassName("borderlist")[0];
|
||||||
let rows = table.getElementsByTagName("tr");
|
let rows = table.getElementsByTagName("tr");
|
||||||
|
|
||||||
let headCell = createCustomElement("th", null, "Calcul");
|
let titleRowIndex = 0;
|
||||||
rows[0].appendChild(headCell);
|
if (rows[titleRowIndex].getElementsByTagName("th").length === 0) {
|
||||||
|
titleRowIndex = 1;
|
||||||
|
}
|
||||||
|
console.log(titleRowIndex)
|
||||||
|
|
||||||
for (let i = 1; i < rows.length; i ++) {
|
let headCell = createCustomElement("th", null, "Calcul", {"width": "45px"});
|
||||||
|
rows[titleRowIndex].appendChild(headCell);
|
||||||
|
|
||||||
|
for (let i = titleRowIndex + 1; i < rows.length; i ++) {
|
||||||
let cells = rows[i].getElementsByTagName("td");
|
let cells = rows[i].getElementsByTagName("td");
|
||||||
let arrivalDateCell = cells[3]
|
let arrivalDateCell = cells[3]
|
||||||
let arrivalTimeCell = cells[4];
|
let arrivalTimeCell = cells[4];
|
||||||
|
|||||||
Reference in New Issue
Block a user