Renamed the #tagInputOnChange method to #onTagInputChange in the JavaScript summary helper.
This commit is contained in:
parent
63ae3f0746
commit
453b3f0da5
@ -138,7 +138,7 @@ class SummaryHelper {
|
|||||||
}
|
}
|
||||||
this.#initializeTagButtons("general", tag, updateSummary);
|
this.#initializeTagButtons("general", tag, updateSummary);
|
||||||
tag.onchange = function () {
|
tag.onchange = function () {
|
||||||
helper.#tagInputOnChange("general", tag, updateSummary);
|
helper.#onTagInputChange("general", tag, updateSummary);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -165,7 +165,7 @@ class SummaryHelper {
|
|||||||
};
|
};
|
||||||
this.#initializeTagButtons("travel", tag, updateSummary);
|
this.#initializeTagButtons("travel", tag, updateSummary);
|
||||||
tag.onchange = function () {
|
tag.onchange = function () {
|
||||||
helper.#tagInputOnChange("travel", tag, updateSummary);
|
helper.#onTagInputChange("travel", tag, updateSummary);
|
||||||
helper.#validateGeneralTripTag();
|
helper.#validateGeneralTripTag();
|
||||||
};
|
};
|
||||||
from.onchange = function () {
|
from.onchange = function () {
|
||||||
@ -205,7 +205,7 @@ class SummaryHelper {
|
|||||||
};
|
};
|
||||||
this.#initializeTagButtons("bus", tag, updateSummary);
|
this.#initializeTagButtons("bus", tag, updateSummary);
|
||||||
tag.onchange = function () {
|
tag.onchange = function () {
|
||||||
helper.#tagInputOnChange("bus", tag, updateSummary);
|
helper.#onTagInputChange("bus", tag, updateSummary);
|
||||||
helper.#validateBusTripTag();
|
helper.#validateBusTripTag();
|
||||||
};
|
};
|
||||||
route.onchange = function () {
|
route.onchange = function () {
|
||||||
@ -254,7 +254,7 @@ class SummaryHelper {
|
|||||||
* @param tag {HTMLInputElement} the tag input
|
* @param tag {HTMLInputElement} the tag input
|
||||||
* @param updateSummary {function(): void} the callback to update the summary
|
* @param updateSummary {function(): void} the callback to update the summary
|
||||||
*/
|
*/
|
||||||
#tagInputOnChange(tabId, tag, updateSummary) {
|
#onTagInputChange(tabId, tag, updateSummary) {
|
||||||
const tagButtons = Array.from(document.getElementsByClassName(this.#prefix + "-" + tabId + "-btn-tag"));
|
const tagButtons = Array.from(document.getElementsByClassName(this.#prefix + "-" + tabId + "-btn-tag"));
|
||||||
let isMatched = false;
|
let isMatched = false;
|
||||||
for (const tagButton of tagButtons) {
|
for (const tagButton of tagButtons) {
|
||||||
|
Loading…
Reference in New Issue
Block a user