before config state

This commit is contained in:
zino
2021-05-14 13:48:13 +02:00
parent 126b9be7ea
commit e7242594b4
9 changed files with 299 additions and 251 deletions

View File

@@ -0,0 +1,19 @@
import * as Communication from "./communication";
import * as UI from "./ui";
export function addCloseModal() {
const btnCloseModal: HTMLElement | undefined = jQuery("#btnCloseModal").get(0);
if (btnCloseModal)
btnCloseModal.addEventListener("click", () => Communication.sendEventToParent("child_closeDialog"));
}
export function addDropdownSeatmap(inPanzoom: any) {
const dropdownSeatmap: HTMLElement | null = document.getElementById("dropdownSeatmap");
if (dropdownSeatmap) {
dropdownSeatmap.addEventListener("change", function (this: HTMLSelectElement) {
UI.controlLoftloader("show");
UI.destroyCurrentSeatmap("#containerSeatmapInner", inPanzoom);
Communication.needSeatmapXML(this.value);
});
}
}