before config state
This commit is contained in:
19
client/src/modules/events.ts
Normal file
19
client/src/modules/events.ts
Normal 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);
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user