1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-28 10:20:45 +02:00

Avoid a conflict when using a data-label within a carousel.

This commit is contained in:
Cameron
2020-03-28 13:10:35 -07:00
parent 3f415f70c1
commit ea5493f723

View File

@@ -128,7 +128,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
placement: placement,
container: 'body',
delay: {
show: 300,
show: 200,
hide: 600
}
});
@@ -858,7 +858,7 @@ $(document).ready(function()
$('body').on('slid.bs.carousel', '.carousel', function(){
var label = $(this).find('.active').attr('data-label');
var label = $(this).find('.carousel-item.active').attr('data-label');
var id = $(this).attr('id') + '-index'; // admin-ui-carousel-index etc.
if(label !== undefined)