fixed multiple close/open dialog
This commit is contained in:
@@ -2,6 +2,7 @@ import * as I from "../types/types";
|
||||
import * as Communication from "./communication";
|
||||
import Panzoom from '@panzoom/panzoom';
|
||||
import { PanzoomObject } from "@panzoom/panzoom/dist/src/types";
|
||||
import { config } from "./config";
|
||||
|
||||
export function setOptionSelect(inSeatmapListing: I.Seatmap[], inId: string) {
|
||||
const seatmapDropdown: HTMLElement | null = document.getElementById(inId);
|
||||
@@ -23,7 +24,7 @@ export function setEventInfo(inEventInfo: I.EventInfo, inInputswithValue: I.Inpu
|
||||
jQuery("#eventInfoLocation p")[0].childNodes[0].textContent = inInputswithValue.venueLocation;
|
||||
}
|
||||
|
||||
export function createDialog(inChildHasVenueXML: boolean): void {
|
||||
export function createDialog(): void {
|
||||
jQuery("#dialogSeatmap").append($("<iframe id='iframeSeatmap' scrolling='no' frameborder='0' marginwidth='0' marginheight='0' allowfullscreen width='100%' height='" + window.outerHeight + "px' />")
|
||||
.attr("src", "https://staging.tickets.zinomedia.de/"))
|
||||
.dialog({
|
||||
@@ -43,7 +44,7 @@ export function createDialog(inChildHasVenueXML: boolean): void {
|
||||
});
|
||||
|
||||
jQuery("#openSeatmap").on("click", () => {
|
||||
if (!inChildHasVenueXML)
|
||||
if (!config.childHasVenueXML)
|
||||
Communication.sendEventToChild("parent_init_venue");
|
||||
|
||||
jQuery('html, body').css('overflow', 'hidden');
|
||||
|
||||
Reference in New Issue
Block a user