From: ModLearning Team Date: Sat, 15 Sep 2012 04:57:11 +0000 (-0400) Subject: Single cycle for orbit slides X-Git-Tag: v3.1.1~9^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F885%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Single cycle for orbit slides When enabled, orbit will only cycle through the slides once...like a presentation --- diff --git a/vendor/assets/javascripts/foundation/jquery.foundation.orbit.js b/vendor/assets/javascripts/foundation/jquery.foundation.orbit.js index b22abde4c..d4710ae96 100644 --- a/vendor/assets/javascripts/foundation/jquery.foundation.orbit.js +++ b/vendor/assets/javascripts/foundation/jquery.foundation.orbit.js @@ -40,7 +40,8 @@ afterSlideChange: $.noop, // empty function afterLoadComplete: $.noop, //callback to execute after everything has been loaded fluid: true, - centerBullets: true // center bullet nav with js, turn this off if you want to position the bullet nav manually + centerBullets: true, // center bullet nav with js, turn this off if you want to position the bullet nav manually + singleCycle: false // cycles through orbit slides only once }, activeSlide: 0, @@ -579,6 +580,10 @@ this.setCaption(); } + + if (this.$slides.last() && this.options.singleCycle) { + this.stopClock(); + } } };