From efcb935c7e0e24d0f6d126fc710406c6d0883c1c Mon Sep 17 00:00:00 2001 From: ruanyf Date: Tue, 22 Apr 2014 08:23:47 +0800 Subject: [PATCH] edit content h1 title --- js/ditto.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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