diff --git a/js/ditto.js b/js/ditto.js index 61e01d2..2ea2f86 100644 --- a/js/ditto.js +++ b/js/ditto.js @@ -115,7 +115,7 @@ function create_page_anchors() { $('#content h' + i).map(function() { headers.push($(this).text()); $(this).addClass(replace_symbols($(this).text())); - this.id = 'h'+1+'-'+replace_symbols($(this).text(); + this.id = 'h'+1+'-'+replace_symbols($(this).text()); }); // parse and set links between li and h2