]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
The bullets weren't working with the previous change. This makes sure both the bullet... 4020/head
authornesl247 <harrison@theheck.me>
Mon, 30 Dec 2013 21:30:47 +0000 (21:30 +0000)
committernesl247 <harrison@theheck.me>
Mon, 30 Dec 2013 21:30:47 +0000 (21:30 +0000)
js/foundation/foundation.orbit.js

index f61fec7484dab84b15837cf9aa5dfad57424bea7..f0aeacf8be4046e22d99aaa70bf2b8ac8c000114 100644 (file)
     };
 
     self.link_bullet = function(e) {    
-      var link = $(this).attr('data-orbit-slide');
-      if ((typeof link === 'string') && (link = $.trim(link)) != "") {
-        var slide = container.find('[data-orbit-slide='+link+']');
-        if (slide.index() != -1) {self._goto(slide.index() + 1);}
+      var index = $(this).attr('data-orbit-slide');
+      if ((typeof index === 'string') && (index = $.trim(index)) != "") {
+        if(isNaN(parseInt(index)))
+        {
+          var slide = container.find('[data-orbit-slide='+index+']');
+          if (slide.index() != -1) {self._goto(slide.index() + 1);}
+        }
+        else
+        {
+          self._goto(parseInt(index));
+        }
       }
+
     }
 
     self.timer_callback = function() {