summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/modules/widgets/gallery/js/gallery.js')
-rw-r--r--plugins/jetpack/modules/widgets/gallery/js/gallery.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/jetpack/modules/widgets/gallery/js/gallery.js b/plugins/jetpack/modules/widgets/gallery/js/gallery.js
index 5b952bb4..3a01bb9b 100644
--- a/plugins/jetpack/modules/widgets/gallery/js/gallery.js
+++ b/plugins/jetpack/modules/widgets/gallery/js/gallery.js
@@ -1,7 +1,9 @@
-( function( $ ) {
+( 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 ) {
+ $( 'body' ).on( 'click', '.widget-gallery .no-carousel .tiled-gallery-item a', function (
+ event
+ ) {
// Have to trigger default, instead of carousel
event.stopPropagation();