before remove getcolumnsnaming

This commit is contained in:
zino
2021-05-15 22:57:15 +02:00
parent 51e78042b5
commit 39aa73b034
10 changed files with 138 additions and 125 deletions

View File

@@ -200,21 +200,21 @@ export function showSeatmapBtnParent(): void {
Communication.sendEventToParent("child_seatmap_ready");
}
export function createSeatTooltips(inVenueXML: I.VenueXML) {
export function createSeatTooltips() {
new jBox("Tooltip", {
attach: jQuery(".seatCharts-seat"),
onOpen: function (this: any) {
showSeatTooltip(this, inVenueXML);
showSeatTooltip(this);
},
});
}
function showSeatTooltip(jBox: any, inVenueXML: I.VenueXML): void {
function showSeatTooltip(jBox: any): void {
const seatID: string = jBox.source[0].id;
const seat = config.state.layoutRows[seatID][5];
const row = config.state.layoutRows[seatID][4];
const sectionID = config.state.layoutRows[seatID][3];
const sectionDesc = XMLHelper.getSectionDescBySectionID(inVenueXML, sectionID);
const sectionDesc = XMLHelper.getSectionDescBySectionID(sectionID);
const tooltipContent = `${sectionDesc}<br/>Reihe ${row} Platz ${seat}`;
jBox.setContent(tooltipContent);