Feat : update carrousel to not loop with less than 3 item

This commit is contained in:
2018-10-31 12:18:57 +01:00
parent 2491b253c6
commit 6f0379c7aa
+1 -1
View File
@@ -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: ['<span class="left-arrow"></span>', '<span class="right-arrow"></span>']
});