diff options
Diffstat (limited to 'plugins/jetpack/modules/carousel/jetpack-carousel.js')
-rw-r--r-- | plugins/jetpack/modules/carousel/jetpack-carousel.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/jetpack/modules/carousel/jetpack-carousel.js b/plugins/jetpack/modules/carousel/jetpack-carousel.js index dbb83150..f07ec826 100644 --- a/plugins/jetpack/modules/carousel/jetpack-carousel.js +++ b/plugins/jetpack/modules/carousel/jetpack-carousel.js @@ -597,6 +597,8 @@ jQuery(document).ready(function($) { } }, + + selectedSlide : function(){ return this.find('.selected'); }, @@ -746,6 +748,7 @@ jQuery(document).ready(function($) { '&rand=' + Math.random(); } + // Load the images for the next and previous slides. $( next ).add( previous ).each( function() { gallery.jp_carousel( 'loadFullImage', $( this ) ); @@ -1059,6 +1062,7 @@ jQuery(document).ready(function($) { return size_parts; }, + originalDimensions: function() { var splitted = $(this).data('orig-size').split(','); return {width: parseInt(splitted[0], 10), height: parseInt(splitted[1], 10)}; |