Skip to content
Snippets Groups Projects
Commit 5b8c171e authored by Martin Leblanc's avatar Martin Leblanc Committed by Kevin Paxman
Browse files

ISTWCMS-5650: Add js to match previous logic for carousel ff numItems

parent adca5400
No related branches found
No related tags found
1 merge request!273Feature/istwcms 5650 m26lebla owl carousel replacement
...@@ -20,13 +20,15 @@ ...@@ -20,13 +20,15 @@
pageDots: true, pageDots: true,
prevNextButtons: false, prevNextButtons: false,
wrapAround: false, wrapAround: false,
contain: true,
groupCells: function () { groupCells: function () {
var width = $(window).width(); var width = $(window).width();
if (width <= 600) { if (width <= 600) {
return 1; return 1;
} }
else if (width <= 1024) { else if (width <= 1000) {
return Math.min(2, numOfItems); return numOfItems <= 2 ? (numOfItems - 1 > 0)
? numOfItems - 1 : 1 : 2;
} }
else { else {
return numOfItems; return numOfItems;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment