Files
carpseeds.pl/wp-content/plugins/jetpack.bck/modules/widgets/gallery/js/gallery.js
2024-07-15 11:28:08 +02:00

11 lines
431 B
JavaScript

( function( $ ) {
// Fixes a bug with carousels being triggered even when a widget's Link To option is not set to carousel.
// Happens when another gallery is loaded on the page, either in a post or separate widget
$( 'body' ).on( 'click', '.widget-gallery .no-carousel .tiled-gallery-item a', function( event ) {
// Have to trigger default, instead of carousel
event.stopPropagation();
return true;
} );
} )( jQuery );