wickes-css2 2.103.0-develop.1 → 2.103.0-develop.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Readme.md +0 -1
- package/build/js/basket.min.js +1 -1
- package/build/js/bundle.min.js +1 -1
- package/build/js/checkout.min.js +1 -1
- package/build/js/merged-checkout.min.js +1 -1
- package/build/js/plp.bundle.min.js +1 -1
- package/build/js/project-list.min.js +1 -1
- package/package.json +1 -1
- package/src/js/components/banner-placement-manager.js +10 -1
package/package.json
CHANGED
|
@@ -212,7 +212,16 @@ Wick.BannerPlacementManager = {
|
|
|
212
212
|
},
|
|
213
213
|
getListSlots() {
|
|
214
214
|
return $(Wick.BannerPlacementManager.el.productsWrap)
|
|
215
|
-
.children(Wick.BannerPlacementManager.el.allListSlots)
|
|
215
|
+
.children(Wick.BannerPlacementManager.el.allListSlots)
|
|
216
|
+
.filter(function() {
|
|
217
|
+
if ($(this).hasClass(Wick.BannerPlacementManager.classes.productBanners)) {
|
|
218
|
+
const position = Wick.BannerPlacementManager.getBannerPosition(this);
|
|
219
|
+
const productsCount = Wick.BannerPlacementManager.getListLength();
|
|
220
|
+
return position <= productsCount;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
return true;
|
|
224
|
+
});
|
|
216
225
|
},
|
|
217
226
|
getBannerPriority(banner) {
|
|
218
227
|
if ($(banner).hasClass(Wick.BannerPlacementManager.classes.sponsorProducts)) {
|