From 1a1d645f8e74ae80e525d8e783aa7b75f7dc4382 Mon Sep 17 00:00:00 2001 From: ruanyf Date: Tue, 22 Apr 2014 09:02:24 +0800 Subject: [PATCH] add content_toc --- js/ditto.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ditto.js b/js/ditto.js index 5598ab3..77214b2 100644 --- a/js/ditto.js +++ b/js/ditto.js @@ -119,8 +119,8 @@ function create_page_anchors() { }); if (i === 2){ - var ul_tag = $('#content h1') - .after('') + var ul_tag = $('') + .insertAfter('#content h1') .addClass("content-toc") .attr('id','content-toc'); for (var j = 0; j < headers.length; j++) {