summaryrefslogtreecommitdiff
blob: 3a01bb9b9f12811fae5285389654f7003388f928 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
( 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 );