revised xmlhelper

This commit is contained in:
zino
2021-05-17 23:48:01 +02:00
parent 8c1c0384c9
commit 48c5efbd57
7 changed files with 140 additions and 183 deletions

View File

@@ -15,6 +15,7 @@ import * as BookingBtn from "./modules/bookingButton";
import * as Panzoom from "./modules/panzoom";
import * as CartButtons from "./modules/cartButtons";
import * as jBoxHelper from "./modules/jBoxHelper";
import * as Parser from './modules/parser';
window.addEventListener('load', () => {
// Inject JSC (jQuery Seat Charts)
@@ -79,11 +80,11 @@ function messageHandler(inE: any) {
const venueXML = config.state.inVenueXML!;
// Generate pricescale css classes
const css = XMLHelper.generatePricescaleCSS();
const css = UI.generatePricescaleCSS();
Utils.inject(css, "cssCustom", "body");
// Fill event info
const eventInfo = XMLHelper.getEventInfo();
const eventInfo = Parser.getEventInfo();
UI.setEventInfo(eventInfo);
// Fill select dropdown
@@ -141,7 +142,7 @@ function messageHandler(inE: any) {
else {
Cart.removeCartItems();
Cart.generateCartItems();
const url = XMLHelper.generateCheckoutUrl();
const url = Cart.generateCheckoutUrl();
Events.addRedirectCheckout(url);
UI.fadeInCartModal();
CartButtons.showHideBtnCartLoading("hide");