AntonLV il y a 7 ans
Parent
commit
56068320e3

+ 17 - 16
modules/base/general/js/showcase.js

@@ -3,21 +3,22 @@ $(document).ready(function () {
 });
 
 function bx_showcase_view_init() {
-	if($('.bx-base-unit-showcase-wrapper').closest('.bx-popup-wrapper').length == 0) {
-		$('.bx-base-unit-showcase-wrapper').each(function() {
-			var oShowcase = $(this);
-			var oShowcaseOptions = {
-				cellSelector: '.bx-base-unit-showcase',
-				cellAlign: 'left',
-				pageDots: false,
-				imagesLoaded: true
-			};
-			
-			var iGroupCells = oShowcase.attr('bx-sc-group-cells');
-			if(iGroupCells != undefined)
-				oShowcaseOptions.groupCells = parseInt(iGroupCells);
+    if($('.bx-base-unit-showcase-wrapper').closest('.bx-popup-wrapper').length == 0) {
+        $('.bx-base-unit-showcase-wrapper').each(function() {
+            var oShowcase = $(this);
+            var oShowcaseOptions = {
+                cellSelector: '.bx-base-unit-showcase',
+                cellAlign: 'left',
+                imagesLoaded: true,
+                wrapAround: true,
+                pageDots: false
+            };
 
-			oShowcase.flickity(oShowcaseOptions);
-		});
-	}
+            var iGroupCells = oShowcase.attr('bx-sc-group-cells');
+            if(iGroupCells != undefined)
+                    oShowcaseOptions.groupCells = parseInt(iGroupCells);
+
+            oShowcase.flickity(oShowcaseOptions);
+        });
+    }
 }

+ 11 - 10
modules/boonex/market/js/entry.js

@@ -97,27 +97,28 @@ BxMarketEntry.prototype.changeFileType = function(oSelect) {
 BxMarketEntry.prototype.initScreenshots = function() {
 	var oItems = jQuery(".bx-market-screenshots .bx-market-ss-item");
 	if(oItems.length == 0)
-		return;
+            return;
 
 	var iWidth = oItems.width();
 	var iWidthOuter = oItems.outerWidth();
 	var bBusy = false;
 
 	oItems.find('a[rel=group]').fancybox({
-		transitionIn: 'elastic',
-		transitionOut: 'elastic',
-		speedIn: 600,
-		speedOut: 200
+            transitionIn: 'elastic',
+            transitionOut: 'elastic',
+            speedIn: 600,
+            speedOut: 200
 	});
 
 	if(oItems.length <= 2)
-		return;
+            return;
 
 	$('.bx-market-screenshots').flickity({
-		cellSelector: '.bx-market-ss-item',
-		cellAlign: 'left',
-		pageDots: false,
-		imagesLoaded: true
+            cellSelector: '.bx-market-ss-item',
+            cellAlign: 'left',
+            imagesLoaded: true,
+            wrapAround: true,
+            pageDots: false
 	});
 };
 

+ 3 - 2
modules/boonex/posts/js/polls.js

@@ -36,8 +36,9 @@ BxPostsPolls.prototype.initFlickity = function(oParent) {
     oItems.flickity({
         cellSelector: 'div.' + sItemClass,
         cellAlign: 'left',
-        pageDots: false,
-        imagesLoaded: true
+        imagesLoaded: true,
+        wrapAround: true,
+        pageDots: false
     });
 };
 

+ 9 - 6
modules/boonex/timeline/js/main.js

@@ -145,8 +145,9 @@ BxTimelineMain.prototype.initFlickity = function() {
         $(this).flickity({
             cellSelector: 'div.' + $this.sClassItemImage,
             cellAlign: 'left',
-            pageDots: false,
-            imagesLoaded: true
+            imagesLoaded: true,
+            wrapAround: true,
+            pageDots: false
         });
     });
 
@@ -160,8 +161,9 @@ BxTimelineMain.prototype.initFlickity = function() {
         oCarousel.flickity({
             cellSelector: 'div.' + $this.sClassItemVideo,
             cellAlign: 'left',
-            pageDots: false,
-            imagesLoaded: true
+            imagesLoaded: true,
+            wrapAround: true,
+            pageDots: false
         });
 
        oCarousel.find('div.' + $this.sClassItemVideo + ' video').each(function() {
@@ -181,8 +183,9 @@ BxTimelineMain.prototype.initFlickity = function() {
         oCarousel.flickity({
             cellSelector: 'div.' + $this.sClassItemAttachment,
             cellAlign: 'left',
-            pageDots: false,
-            imagesLoaded: true
+            imagesLoaded: true,
+            wrapAround: true,
+            pageDots: false
         });
 
        oCarousel.find('div.' + $this.sClassItemAttachment + ' video').each(function() {