From 8deca4b878e5d6d29b1c52f590a53dde27ab2031 Mon Sep 17 00:00:00 2001 From: ruanyf Date: Tue, 29 Apr 2014 22:31:40 +0800 Subject: [PATCH] edit js/ditto --- js/ditto.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ditto.js b/js/ditto.js index ca19b34..a5d3904 100644 --- a/js/ditto.js +++ b/js/ditto.js @@ -46,7 +46,7 @@ function init_sidebar_section() { menuOL.attr('start',0); menuOL.find('li a').map(function(){ - menu.push(this.href); + menu.push(this.href.slice(this.href.indexOf('#'))); }); }, "text").fail(function() { alert("Opps! can't find the sidebar file to display!");