From 2adcaa4079fa9f5ca61ecad3192d1ec163dc33e6 Mon Sep 17 00:00:00 2001 From: ModLearning Team Date: Sat, 15 Sep 2012 00:57:11 -0400 Subject: [PATCH] Single cycle for orbit slides When enabled, orbit will only cycle through the slides once...like a presentation --- .../javascripts/foundation/jquery.foundation.orbit.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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(); + } } }; -- 2.47.3