10.April 2026

This commit is contained in:
Kevin Adametz 2026-04-10 17:15:27 +02:00
parent a00c42e770
commit f58c709945
208 changed files with 19280 additions and 2914 deletions

View file

@ -99,6 +99,10 @@ a[aria-expanded="true"] > .fa-caret-expand:before {
display: none;
}
.lead {
font-weight: 400;
}
.badge-outline-warning-dark {
background-color: transparent;
-webkit-box-shadow: 0 0 0 1px #ffd950 inset;

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 205 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 KiB

View file

@ -121,21 +121,80 @@ var IqShoppingCart = {
_self.performRequest({product_id: product_id, qty: qty, action: 'updateCart'})
.done(_self.refreshItemsAndView);
},
/**
* Liefertag-Info (wenn keine Warnung) bzw. Warnung (Partner-Center Abo, < 20 Tage): nach jedem AJAX-Warenkorb-Update,
* da eingebettete Scripts in .html() nicht ausgeführt werden.
*/
updateAboIntervalWarning: function () {
var warningTemplate = window.aboIntervalWarningTemplate;
var infoTemplate = window.aboIntervalInfoTemplate;
if (!warningTemplate && !infoTemplate) {
return;
}
var select = document.getElementById('abo_interval_select');
if (!select) {
return;
}
var warning = document.getElementById('abo_interval_warning');
var info = document.getElementById('abo_interval_info');
var option = select.options[select.selectedIndex];
if (!option) {
return;
}
var days = parseInt(option.getAttribute('data-days'), 10);
var date = option.getAttribute('data-date') || '';
if (isNaN(days)) {
return;
}
var showWarning = days < 20;
if (warning && warningTemplate) {
if (showWarning) {
warning.innerHTML =
'<i class="fa fa-exclamation-triangle"></i> ' +
warningTemplate.replace('__DAYS__', days).replace('__DATE__', date);
warning.classList.remove('d-none');
} else {
warning.classList.add('d-none');
}
}
if (info && infoTemplate) {
if (showWarning) {
info.innerHTML = '';
info.classList.add('d-none');
} else {
info.innerHTML =
'<i class="fa fa-info-circle"></i> ' +
infoTemplate.replace('__DAYS__', days).replace('__DATE__', date);
info.classList.remove('d-none');
}
}
},
refreshItemsAndView: function (data){
var _self = IqShoppingCart;
if (data && data.response === false && data.message) {
alert(data.message);
return;
}
$(_self.card_holder).html(data.html_card);
$(_self.comp_holder).html(data.html_comp);
_self.showInit();
_self.updateAboIntervalWarning();
},
refreshDatabaseAndView: function (data) {
var _self = IqShoppingCart;
if (data && data.response === false && data.message) {
alert(data.message);
return;
}
$(_self.card_holder).html(data.html_card);
$(_self.comp_holder).html(data.html_comp);
var input = $(_self.table).find('input[name="product_qty_'+data.data.product_id+'"]');
input.val(data.data.qty);
_self.showInit();
_self.updateAboIntervalWarning();
},
locationReload : function(){
//location.reload();
@ -147,6 +206,7 @@ var IqShoppingCart = {
$(_self.comp_holder).html(data.html_comp);
_self.showInit();
_self.updateAboIntervalWarning();
_self.oTable.draw();
},
checkNumber : function(number){
@ -196,4 +256,11 @@ var IqShoppingCart = {
console.log("Sorry, there was a problem!");
});
}
};
};
$(function () {
$(document).on('change', '#abo_interval_select', function () {
IqShoppingCart.updateAboIntervalWarning();
});
IqShoppingCart.updateAboIntervalWarning();
});