Renamed the variables in the #reset method of the JavaScript SummaryHelper class, for consistency.
This commit is contained in:
parent
d02c87602b
commit
a9c7360020
@ -560,17 +560,17 @@ class SummaryHelper {
|
|||||||
input.value = "";
|
input.value = "";
|
||||||
input.classList.remove("is-invalid");
|
input.classList.remove("is-invalid");
|
||||||
});
|
});
|
||||||
tagButtons.forEach(function (btnTag) {
|
tagButtons.forEach(function (button) {
|
||||||
btnTag.classList.remove("btn-primary");
|
button.classList.remove("btn-primary");
|
||||||
btnTag.classList.add("btn-outline-primary");
|
button.classList.add("btn-outline-primary");
|
||||||
});
|
});
|
||||||
directionButtons.forEach(function (btnDirection) {
|
directionButtons.forEach(function (button) {
|
||||||
if (btnDirection.classList.contains("accounting-default")) {
|
if (button.classList.contains("accounting-default")) {
|
||||||
btnDirection.classList.remove("btn-outline-primary");
|
button.classList.remove("btn-outline-primary");
|
||||||
btnDirection.classList.add("btn-primary");
|
button.classList.add("btn-primary");
|
||||||
} else {
|
} else {
|
||||||
btnDirection.classList.add("btn-outline-primary");
|
button.classList.add("btn-outline-primary");
|
||||||
btnDirection.classList.remove("btn-primary");
|
button.classList.remove("btn-primary");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.#switchToTab(this.#defaultTabId);
|
this.#switchToTab(this.#defaultTabId);
|
||||||
|
Loading…
Reference in New Issue
Block a user