diff --git a/frontend/web/js/script.js b/frontend/web/js/script.js
index 884d85a..84b3b3a 100755
--- a/frontend/web/js/script.js
+++ b/frontend/web/js/script.js
@@ -111,14 +111,13 @@ $(
e.preventDefault();
var id = $(this)
.data('id');
- var alert_id = Math.floor(Math.random() * (999 - 100 + 1)) + 100;
basket.add(id, 1);
if ($('.alert-cart').length > 0) {
} else {
- $('body').prepend($("
Товар добавлен в корзину.
"));
- setTimeout(function(){$("#alert_"+alert_id).addClass("active");},100);
- setTimeout(function(){$("#alert_"+alert_id).removeClass("active");},3500);
- setTimeout(function(){$("#alert_"+alert_id).remove();},3600);
+ $('body').prepend($("Товар добавлен в корзину.
"));
+ setTimeout(function(){$(".alert-cart").addClass("active");},100);
+ setTimeout(function(){$(".alert-cart").removeClass("active");},3500);
+ setTimeout(function(){$(".alert-cart").remove();},3600);
}
});
--
libgit2 0.21.4