vendor/assets/javascripts/bootstrapped_subnavigation.js in bootstrapped-rails-2.0.7.8 vs vendor/assets/javascripts/bootstrapped_subnavigation.js in bootstrapped-rails-2.0.7.9

- old
+ new

@@ -1,7 +1,8 @@ //= require_self $(function() { $("body").attr("data-spy", "scroll").attr("data-target", ".subnav").attr('data-offset', "50"); + $(document).scroll(function(){ // If has not activated (has no attribute "data-top" if (!$('.subnav').attr('data-top')) { // If already fixed, then do nothing if ($('.subnav').hasClass('subnav-fixed')) return;