From d9b5f20e3e72ef7a62284f67cbca1a6f2abc7f36 Mon Sep 17 00:00:00 2001 From: = <=> Date: Mon, 5 Sep 2022 10:09:39 -0500 Subject: [PATCH] . --- assets/js/methods.js | 3 ++- assets/js/script.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/assets/js/methods.js b/assets/js/methods.js index 52c2b36..c4447c5 100644 --- a/assets/js/methods.js +++ b/assets/js/methods.js @@ -99,7 +99,7 @@ function updateProductsInLocalStorage(){ $('#list-products-in-bag').parent().parent().parent().parent().parent().find('.modal-footer').show(); $('#total-price').parent().parent().parent().show(); $('#no-products').hide(); - $('#modal-buttons').hide(); + $('#modal-buttons').show(); if(typeof updateProducts === "function"){ $('#form-section').show(); $('#list-products').parent().parent().parent().parent().parent().find('.modal-footer').show(); @@ -123,6 +123,7 @@ function updateProductsInLocalStorage(){ $('#list-products-in-bag').parent().parent().parent().parent().parent().find('.modal-footer').hide(); $('#total-price').parent().parent().parent().hide(); $('#no-products').show(); + $('#modal-buttons').hide(); if(typeof updateProducts === "function"){ $('#form-section').hide(); $('#list-products').parent().parent().parent().parent().parent().find('.modal-footer').hide(); diff --git a/assets/js/script.js b/assets/js/script.js index 84e16ca..4a52cd0 100644 --- a/assets/js/script.js +++ b/assets/js/script.js @@ -29,7 +29,7 @@ $(window).on('load', function(){ $('#list-products-in-bag').parent().parent().parent().parent().parent().find('.modal-footer').show(); $('#total-price').parent().parent().parent().show(); $('#no-products').hide(); - $('#modal-buttons').hide(); + $('#modal-buttons').show(); if(typeof updateProducts === "function"){ $('#form-section').show(); $('#list-products').parent().parent().parent().parent().parent().find('.modal-footer').show(); @@ -43,6 +43,7 @@ $(window).on('load', function(){ $('#list-products-in-bag').parent().parent().parent().parent().parent().find('.modal-footer').hide(); $('#total-price').parent().parent().parent().hide(); $('#no-products').show(); + $('#modal-buttons').hide(); if(typeof updateProducts === "function"){ $('#form-section').hide(); $('#list-products').parent().parent().parent().parent().parent().find('.modal-footer').hide();