Skip to content

Commit

Permalink
Slideshow: use the timeout param instead of speed
Browse files Browse the repository at this point in the history
  • Loading branch information
jeherve committed Feb 8, 2017
1 parent cb39e6f commit aaf2408
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/shortcodes/js/slideshow-shortcode.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ JetpackSlideshow.prototype.finishInit_ = function() {
fx: this.transition,
prev: this.controls.prev,
next: this.controls.next,
speed: jetpackSlideshowSettings.speed,
timeout: jetpackSlideshowSettings.speed,
slideExpr: '.slideshow-slide',
onPrevNextEvent: function() {
return self.onCyclePrevNextClick_.apply( self, arguments );
Expand Down
4 changes: 2 additions & 2 deletions modules/shortcodes/slideshow.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,11 @@ function enqueue_scripts() {
*
* @param array $args
* - string - spinner - URL of the spinner image.
* - string - speed - Speed of the slideshow. Defaults to 1000.
* - string - speed - Speed of the slideshow. Defaults to 4000.
*/
apply_filters( 'jetpack_js_slideshow_settings', array(
'spinner' => plugins_url( '/img/slideshow-loader.gif', __FILE__ ),
'speed' => '1000',
'speed' => '4000',
) )
);
}
Expand Down

0 comments on commit aaf2408

Please sign in to comment.