]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Single cycle for orbit slides 885/head
authorModLearning Team <github@modlearning.com>
Sat, 15 Sep 2012 04:57:11 +0000 (00:57 -0400)
committerModLearning Team <github@modlearning.com>
Sat, 15 Sep 2012 04:57:11 +0000 (00:57 -0400)
When enabled, orbit will only cycle through the slides once...like a
presentation

vendor/assets/javascripts/foundation/jquery.foundation.orbit.js

index b22abde4c6fe48039cd429817b5364fb0b807a19..d4710ae96d97e6b7b5d850adf2a3102a46129e7f 100644 (file)
@@ -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,
 
         this.setCaption();
       }
+         
+      if (this.$slides.last() && this.options.singleCycle) {
+        this.stopClock();
+      }
     }
   };