revised ui 2

This commit is contained in:
zino
2021-05-17 18:56:49 +02:00
parent fe19226a4c
commit 5a78e909b2
4 changed files with 7 additions and 13 deletions

View File

@@ -1,8 +1,8 @@
import * as XMLHelper from "./xmlhelper";
import { config } from "./config";
import * as I from "../types/types";
import * as UI from "./ui";
import * as Events from "./events";
import * as CartButtons from "./cartButtons";
export function addItem(inSeatObj: I.JSCSelectedSeat): void {
const color: string = `#${XMLHelper.getVenuePricescalePropertyByPricescaleID("color", inSeatObj.data.seatsObj.id[0])}`;
@@ -38,7 +38,7 @@ export function changedDropdownBuyerType(inSelect: HTMLSelectElement, inSeatObj:
config.state.selectedSeatsArr[index][2] = buyerTypeCode;
calcOverallPrice();
UI.setBtnCartText();
CartButtons.setBtnCartText();
const url = XMLHelper.generateCheckoutUrl();
Events.addRedirectCheckout(url);

View File

@@ -1,7 +1,6 @@
import { config } from "./config";
import * as I from "../types/types";
import * as XMLHelper from "./xmlhelper";
import * as UI from "./ui";
import * as jBoxHelper from "./jBoxHelper";
export function addSeatToState(inSelectedSeat: I.JSCSelectedSeat): void {

View File

@@ -2,9 +2,9 @@ import axios, { AxiosResponse } from 'axios';
var xml2jsParser = require('xml2js').parseString;
import * as I from "../types/types";
import Utils from './utils';
import * as UI from "./ui";
import { config } from "./config";
import * as Communication from "./communication";
import * as CartButtons from "./cartButtons";
export function getXMLPromise(url: string): Promise<unknown> {
return axios.get(url)
@@ -68,7 +68,7 @@ export function isValidSeatSelection() {
if (!config.state.selectedSeatsArr.length)
return;
UI.showHideBtnCartLoading("show");
CartButtons.showHideBtnCartLoading("show");
jQuery("#modalCart i").hide();
jQuery("#modalCart .uabb-button-text").addClass("dot-pulse");