replaced console.log, installed envify, added appendVersion
This commit is contained in:
@@ -3,6 +3,7 @@ import { config } from "./config";
|
||||
import * as State from "./state";
|
||||
import * as Cart from "./cart";
|
||||
import * as CartButtons from "./cartButtons";
|
||||
import Utils from './utils'
|
||||
|
||||
export function getSeats(): I.JSCSeats {
|
||||
const seatmapXML: any = config.state.seatmapXML;
|
||||
@@ -124,10 +125,6 @@ export function selectSeatsInCart(): void {
|
||||
export function addSeatmap(inSelector: string, inMap: string[], inRowsNaming: string[], inSeats: I.JSCSeats, inLegend: I.JSCLegend): void {
|
||||
const containerSeatmap: any = (<any>window).jQuery(inSelector);
|
||||
|
||||
// console.log(inSeatmapInitMap);
|
||||
// console.log(inSeats);
|
||||
// console.log(inLegend);
|
||||
|
||||
config.state.seatmap = containerSeatmap.seatCharts({
|
||||
naming: {
|
||||
top: false,
|
||||
@@ -213,7 +210,8 @@ function clickedSeat(inSeatmap: any) {
|
||||
|
||||
function clickAvailableSeat(inSeatmap: any) {
|
||||
const selectedSeat: I.JSCSelectedSeat = inSeatmap.settings;
|
||||
console.log(selectedSeat);
|
||||
|
||||
Utils.consoleLog(selectedSeat);
|
||||
|
||||
if (State.maximumSelectedSeatsReached(selectedSeat))
|
||||
return "available";
|
||||
|
||||
Reference in New Issue
Block a user