reworked config to dynamically adjust to staging or master config value (2nd version aftert 1st lost)

This commit is contained in:
zino
2021-05-23 12:42:35 +02:00
parent 6d40613e64
commit 8a1ce5ad03
10 changed files with 151 additions and 73 deletions

View File

@@ -4,6 +4,7 @@ import { config } from "./config";
import * as Events from "./events";
import * as Panzoom from "./panzoom";
import * as CartButtons from "./cartButtons";
import Utils from "./utils";
export function setOptionSelect(inSeatmapListing: I.Seatmap[], inId: string): void {
const seatmapDropdown: HTMLElement | null = document.getElementById(inId);
@@ -29,7 +30,7 @@ export function setEventInfo(inEventInfo: I.EventInfo): void {
export function createDialog(): void {
const iframeHTML: string = "<iframe id='iframeSeatmap' scrolling='no' frameborder='0' marginwidth='0' marginheight='0' allowfullscreen width='100%' />";
const src: string = config.branch === "staging" ? config.urlSeatmapStaging : config.urlSeatmapMaster;
const src: string = Utils.getConfigValue("seatmap");
jQuery("#dialogSeatmap").append(
jQuery(iframeHTML)