diff --git a/public/js/map/seatchart.js b/public/js/map/seatchart.js
index acd277d..ce30acf 100644
--- a/public/js/map/seatchart.js
+++ b/public/js/map/seatchart.js
@@ -1,8 +1,8 @@
$(document).ready(function() {
function createMap(seats_rows, seats_container) {
- let $cart = $('#selected-seats');
- let seat_selected = false;
+ var $cart = $('#selected-seats');
+ var seat_selected = false;
seats_container.seatCharts({
map: seats_rows,
@@ -20,7 +20,7 @@ $(document).ready(function() {
},
click: function () {
if (this.status() === 'available' && !seat_selected) {
- // let's create a new
which we'll add to the cart items
+ // var's create a new which we'll add to the cart items
$(' ' + this.settings.label + ' [x]')
.attr('id', 'cart-item-' + this.settings.id)
.data('seatId', this.settings.id)
@@ -48,17 +48,17 @@ $(document).ready(function() {
}
function createMultiPartsMap(parts_number, seat_map) {
- let $cart = $('#selected-seats');
- let seat_selected = false;
+ var $cart = $('#selected-seats');
+ var seat_selected = false;
// divide all rows into carousel slides
- let parts_elements = []; // slides elements
- let parts_rows = []; // sets of rows for slides
+ var parts_elements = []; // slides elements
+ var parts_rows = []; // sets of rows for slides
const per_page = 4; // max number of rows on one slide
- let first_index = 0;
- let last_index = 4;
+ var first_index = 0;
+ var last_index = 4;
- for(let i=0; i which we'll add to the cart items
+ // //var's create a new which we'll add to the cart items
$(' ' + this.settings.label + ' [x]')
.attr('id', 'cart-item-' + this.settings.id)
.data('seatId', this.settings.id)
@@ -124,7 +124,7 @@ $(document).ready(function() {
});
// execute seatchart function for the rest slides
- for(let i=1; i which we'll add to the cart items
+ // //var's create a new which we'll add to the cart items
$(' ' + this.settings.label + ' [x]')
.attr('id', 'cart-item-' + this.settings.id)
.data('seatId', this.settings.id)