From 6f0379c7aaed4da2818c4f520073a4687c68d6d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20Th=C3=A9venot?= Date: Wed, 31 Oct 2018 12:18:57 +0100 Subject: [PATCH] Feat : update carrousel to not loop with less than 3 item --- volume/www/website/www/web/js/global.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/volume/www/website/www/web/js/global.js b/volume/www/website/www/web/js/global.js index e3ea2ada0..800a8c53c 100755 --- a/volume/www/website/www/web/js/global.js +++ b/volume/www/website/www/web/js/global.js @@ -194,7 +194,7 @@ $(document).ready(function () { margin: marginValue, // stagePadding: paddingValue, nav: true, - loop: true, + loop: $('.territory-carousel > .item').length <= 2 ? false : true, center:true, navText: ['', ''] });