From ee30d469bc126e5407ecf7263b61da767be00da9 Mon Sep 17 00:00:00 2001 From: thomas-topway-it Date: Wed, 21 Sep 2022 15:36:26 +0400 Subject: [PATCH] SemanticResultFormats (KM-A) (#727) Changed function name to avoid conflicts Co-authored-by: Bernhard Krabina --- formats/widget/resources/ext.srf.pagewidget.carousel.js | 2 +- resources/jquery/jquery.dynamiccarousel.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/formats/widget/resources/ext.srf.pagewidget.carousel.js b/formats/widget/resources/ext.srf.pagewidget.carousel.js index 2f7ab9f94..71ef1841f 100644 --- a/formats/widget/resources/ext.srf.pagewidget.carousel.js +++ b/formats/widget/resources/ext.srf.pagewidget.carousel.js @@ -55,7 +55,7 @@ // Iterate over available container objects container.each( function() { - $( this ).carousel( { + $( this ).dynamicCarousel( { namespace: 'srf-pagewidget-carousel', slider: '.slider', slide: '.slide' diff --git a/resources/jquery/jquery.dynamiccarousel.js b/resources/jquery/jquery.dynamiccarousel.js index 456ec5365..58dcadaaa 100644 --- a/resources/jquery/jquery.dynamiccarousel.js +++ b/resources/jquery/jquery.dynamiccarousel.js @@ -25,7 +25,7 @@ return this; }; - $.fn.carousel = function(config) { + $.fn.dynamicCarousel = function(config) { // Prevent re-init: if( this.data( "carousel-initialized" ) ) { return; } @@ -523,4 +523,4 @@ $.event.special.dragSnap = { }); }); } -}; \ No newline at end of file +};