This commit is contained in:
2025-05-20 00:42:06 +02:00
parent 3a604530bc
commit 43f52d3fe1
126 changed files with 36 additions and 486862 deletions

View File

@@ -871,7 +871,7 @@ $(document).ready(function(){
$("#buy-by-phone-form-btn").on('click', function(e){
e.preventDefault();
$("#buy-by-phone-popup .popup-footer").empty();
var name = $("#buy-by-phone-popup").find('input[name="buy-by-phone-name"]').val();
@@ -879,7 +879,7 @@ $(document).ready(function(){
var contact_time = $("#buy-by-phone-popup").find('input[name="contact-time"]').val();
var politics = $("#buy-by-phone-popup").find('input[name="polityka"]').prop('checked');
if ( !phone)
if ( !phone)
{
popupAlert('<p>Proszę wypełnić wymagane pola formularza</p>')
return;
@@ -983,7 +983,7 @@ $(document).ready(function(){
if($("#box-accessories-slider").length){
var accessoriesSlider = $("#box-accessories-slider")
var accessoriesVisible = false;
$("#box-product-accessories .buy-protector-btn").on('click', function() {
if (!accessoriesVisible) {
$("#box-accessories-slider").slideDown();
@@ -1055,13 +1055,13 @@ $(document).ready(function(){
$(document).ready(function () {
$('.nav-item.parent.dropdown').on('mouseenter', function () {
var $submenu = $(this).find('.dropdown-menu');
if ($submenu.length) {
$submenu.css({ left: '', right: '', transform: '' });
var submenuRect = $submenu[0].getBoundingClientRect();
var windowWidth = $(window).width();
if (submenuRect.right > windowWidth) {
$submenu.attr('style', 'left: 50% !important; right: auto !important; transform: translateX(-50%) !important;');
} else if (submenuRect.left < 0) {
@@ -1071,4 +1071,9 @@ $(document).ready(function () {
}
}
});
});
prestashop.on('updateCart', function(event) {
// np. aktualizacja DOM lub całkowity reload:
location.reload(); // najprostsze rozwiązanie
});