before config state
This commit is contained in:
@@ -73,4 +73,18 @@ export function getVenueImage(): { venueImageSrc: string, venueImageHeight: numb
|
||||
}
|
||||
|
||||
return undefined;
|
||||
}
|
||||
|
||||
export function getSMAP(): string | undefined {
|
||||
if (jQuery("#seating_map_url").length === 0)
|
||||
return undefined;
|
||||
|
||||
const str: string = jQuery("#seating_map_url a").attr("onclick");
|
||||
const re = /openNewWindow\(\'(\d+)\'/;
|
||||
const found: RegExpMatchArray | null = str.match(re);
|
||||
|
||||
if (found)
|
||||
return found[1];
|
||||
else
|
||||
return undefined;
|
||||
}
|
||||
Reference in New Issue
Block a user