implemented: show important note in cart if set on trxstate 20 page
This commit is contained in:
13
client/dist/inject.js
vendored
13
client/dist/inject.js
vendored
File diff suppressed because one or more lines are too long
2
client/dist/seatmap.css
vendored
2
client/dist/seatmap.css
vendored
File diff suppressed because one or more lines are too long
14
client/dist/seatmap.js
vendored
14
client/dist/seatmap.js
vendored
File diff suppressed because one or more lines are too long
@@ -290,4 +290,9 @@ span.trimChar {
|
|||||||
|
|
||||||
#bottomHTML h6, #bottomHTML a {
|
#bottomHTML h6, #bottomHTML a {
|
||||||
color: #999;
|
color: #999;
|
||||||
|
}
|
||||||
|
|
||||||
|
#modalCartImportantNote {
|
||||||
|
margin: 0 0 20px 0;
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
@@ -57,7 +57,6 @@ export function calcOverallPrice(): void{
|
|||||||
config.state.priceOverallEur = getPriceInEur(config.state.priceOverall);
|
config.state.priceOverallEur = getPriceInEur(config.state.priceOverall);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export function generateCartItems(): void {
|
export function generateCartItems(): void {
|
||||||
if (!config.state.selectedSeatsArr.length)
|
if (!config.state.selectedSeatsArr.length)
|
||||||
return;
|
return;
|
||||||
@@ -90,6 +89,15 @@ export function getPriceInEur(inPrice: string): string {
|
|||||||
return new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR' }).format(price);
|
return new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR' }).format(price);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function setImportantNote(): void {
|
||||||
|
if (!config.state.inputsWithValue?.importantNote)
|
||||||
|
return;
|
||||||
|
|
||||||
|
const importantNoteSelector: JQuery<HTMLElement> = jQuery("#modalCartImportantNote")
|
||||||
|
importantNoteSelector[0].innerText = config.state.inputsWithValue?.importantNote
|
||||||
|
importantNoteSelector.show();
|
||||||
|
}
|
||||||
|
|
||||||
function appendHTML(inCartID: string, inColor: string, inCategory: string | undefined, inSeatStr: string): void {
|
function appendHTML(inCartID: string, inColor: string, inCategory: string | undefined, inSeatStr: string): void {
|
||||||
jQuery("#cartItemHTML .fl-html").append(`
|
jQuery("#cartItemHTML .fl-html").append(`
|
||||||
<div class="cartItem" id="${inCartID}">
|
<div class="cartItem" id="${inCartID}">
|
||||||
|
|||||||
@@ -69,6 +69,7 @@ export function sendSeatmapXML(inE: any) {
|
|||||||
Trims.addTrims();
|
Trims.addTrims();
|
||||||
XMLHelper.processSMAP();
|
XMLHelper.processSMAP();
|
||||||
config.state.panzoom = Panzoom.addPanzoom("#containerSeatmapInner", ".panzoomZoomIn", ".panzoomZoomOut", "#panzoomResetZoom");
|
config.state.panzoom = Panzoom.addPanzoom("#containerSeatmapInner", ".panzoomZoomIn", ".panzoomZoomOut", "#panzoomResetZoom");
|
||||||
|
Cart.setImportantNote();
|
||||||
UI.controlLoftloader("hide");
|
UI.controlLoftloader("hide");
|
||||||
jBoxHelper.createSeatTooltips();
|
jBoxHelper.createSeatTooltips();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user