lib/rdoc/generator/template/rails/resources/js/main.js in sdoc-0.3.4 vs lib/rdoc/generator/template/rails/resources/js/main.js in sdoc-0.3.5
- old
+ new
@@ -1,13 +1,9 @@
-function toggleSource( id )
+function toggleSource(id)
{
var src = $('#' + id).toggle();
var isVisible = src.is(':visible');
$('#l_' + id).html(isVisible ? 'hide' : 'show');
- if (!src.data('syntax-higlighted')) {
- src.data('syntax-higlighted', 1);
- hljs.highlightBlock(src[0]);
- }
}
window.highlight = function(url) {
var hash = url.match(/#([^#]+)$/)
if(hash) {