Initial Commit
This commit is contained in:
parent
4c352bf02e
commit
1ab6e5f0b0
1085 changed files with 195258 additions and 0 deletions
10
plugins/jetpack/modules/widgets/gallery/js/gallery.js
Normal file
10
plugins/jetpack/modules/widgets/gallery/js/gallery.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
(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);
|
Reference in a new issue