lib/rdoc/generator/template/rails/resources/js/main.js in sdoc-1.0.0.rc2 vs lib/rdoc/generator/template/rails/resources/js/main.js in sdoc-1.0.0.rc3

- old
+ new

@@ -5,10 +5,16 @@ } window.highlight = function(url) { var hash = url.match(/#([^#]+)$/); if (hash) { - $('a[name=' + hash[1] + ']').parent().effect('highlight', {}, 'slow'); + var parent = document.querySelector('a[name=' + hash[1] + ']').parentElement; + + parent.classList.add('highlight'); + + setTimeout(function() { + parent.classList.remove('highlight'); + }, 1000); } }; $(function() { highlight('#' + location.hash);