Wait for umami events to finish
This commit is contained in:
parent
bca3c65ead
commit
afae2f9605
1 changed files with 8 additions and 8 deletions
|
|
@ -102,8 +102,8 @@ async function loadProducts() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeProduct(element_to_remove){
|
async function removeProduct(element_to_remove){
|
||||||
umami.track('Remove Product');
|
await umami.track('Remove Product');
|
||||||
const product_row = document.getElementById('product_row')
|
const product_row = document.getElementById('product_row')
|
||||||
const products = product_row.children
|
const products = product_row.children
|
||||||
|
|
||||||
|
|
@ -143,19 +143,19 @@ function removeProduct(element_to_remove){
|
||||||
to_fill_product_index -= 1
|
to_fill_product_index -= 1
|
||||||
}
|
}
|
||||||
|
|
||||||
function payCash() {
|
async function payCash() {
|
||||||
umami.track('Pay Cash button');
|
await umami.track('Pay Cash button');
|
||||||
const total_cost = document.getElementById('totalprice').innerHTML.replace('€ ','')
|
const total_cost = document.getElementById('totalprice').innerHTML.replace('€ ','')
|
||||||
window.location.href = "/pay_cash/" + total_cost
|
window.location.href = "/pay_cash/" + total_cost
|
||||||
}
|
}
|
||||||
|
|
||||||
function payCard() {
|
async function payCard() {
|
||||||
umami.track('Pay Card button');
|
await umami.track('Pay Card button');
|
||||||
const total_cost = document.getElementById('totalprice').innerHTML.replace('€ ','')
|
const total_cost = document.getElementById('totalprice').innerHTML.replace('€ ','')
|
||||||
window.location.href = "/pay_card/" + total_cost
|
window.location.href = "/pay_card/" + total_cost
|
||||||
}
|
}
|
||||||
|
|
||||||
function toMain() {
|
async function toMain() {
|
||||||
umami.track('To Main button');
|
await umami.track('To Main button');
|
||||||
window.location.href = "/";
|
window.location.href = "/";
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue