master
parent
149c12ce71
commit
600e38f4b0
|
@ -55,6 +55,7 @@ $(window).on('load', function(){
|
|||
$("#successful-submitting-form").delay(4000).slideUp(200, function() { $(this).alert('close'); });
|
||||
$('#anfrage').submit(function(event){
|
||||
event.preventDefault();
|
||||
let form = $(this);
|
||||
getInfoFromSelectedProduct().done(function(response, status){
|
||||
let products = response.contents.map(product => {
|
||||
product = getProductInfo(product);
|
||||
|
@ -64,7 +65,7 @@ $(window).on('load', function(){
|
|||
$('#ccart').val(JSON.stringify({"total-price": totalPrice, "products": products}));
|
||||
objProducts = [];
|
||||
localStorage.setItem("products", JSON.stringify(objProducts));
|
||||
$(this).unbind('submit').submit();
|
||||
form.unbind('submit').submit();
|
||||
});
|
||||
});
|
||||
$(document).on('click', '.btn-remove-product', function(){
|
||||
|
|
Loading…
Reference in New Issue