Added feature to specify first seatmap on load by defining second value of SMAP (must be valid code). If invalid code given, first seatmap will be returned.
This commit is contained in:
@@ -37,7 +37,9 @@ export function initSendVenueXML(inE: any) {
|
||||
UI.setOptionSelect(seatmapListing, "dropdownSeatmap");
|
||||
|
||||
// Display first seatmapXML
|
||||
const id: string = seatmapListing[0].id[0];
|
||||
// If smap[1] is given by user, display specific seatmap on load
|
||||
const id: string = XMLHelper.getFirstSeatmapIDToLoad();
|
||||
|
||||
jQuery("#dropdownSeatmap").val(id);
|
||||
Communication.needSeatmapXML(id);
|
||||
|
||||
@@ -67,7 +69,7 @@ export function sendSeatmapXML(inE: any) {
|
||||
Legend.convertLegendToDropdown("dropdownLegend");
|
||||
Events.dropdownLegendOnChange("#dropdownLegend");
|
||||
Trims.addTrims();
|
||||
XMLHelper.processSMAP();
|
||||
XMLHelper.showHideVenueCapacity();
|
||||
config.state.panzoom = Panzoom.addPanzoom("#containerSeatmapInner", ".panzoomZoomIn", ".panzoomZoomOut", "#panzoomResetZoom");
|
||||
Cart.setImportantNote();
|
||||
UI.controlLoftloader("hide");
|
||||
|
||||
Reference in New Issue
Block a user