aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap2/static
diff options
context:
space:
mode:
authorJiachen Yang <farseerfc@gmail.com>2012-03-12 07:17:06 +0900
committerJiachen Yang <farseerfc@gmail.com>2012-03-12 07:17:06 +0900
commit8f363a24355aba06f54ea4615facf7c278b859d9 (patch)
tree12c25950888ff79f7d2c81f14fea54a98d5b92f2 /bootstrap2/static
parentf567ee85739eb9c9732aea09339bd9b7825891ff (diff)
downloadpelican-themes-8f363a24355aba06f54ea4615facf7c278b859d9.tar.gz
minor changes, added license file
Diffstat (limited to 'bootstrap2/static')
-rw-r--r--bootstrap2/static/js/autosidebar.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/bootstrap2/static/js/autosidebar.js b/bootstrap2/static/js/autosidebar.js
index 2f4a6d2..b9cef7e 100644
--- a/bootstrap2/static/js/autosidebar.js
+++ b/bootstrap2/static/js/autosidebar.js
@@ -7,20 +7,20 @@ jQuery.fn.justtext = function() {
};
-$(document).ready(function(){
+$(document).ready(function(){
$("h1").each(function(){
$("#sidebar").append(
- "<h4><a href='#'>"+$(this).justtext()+"</a></h4>"
+ "<li class=\"nav-header\"><h4>"+$(this).children()[0].justtext()+"</h4></li>"
);
ul = $("<ul>");
$("h2",$(this).parent().parent()).each(function(){
ul.append(
- "<li><a href='#'>"+$(this).justtext()+"</a></li>"
+ "<li class=\"nav-header\"><h5>"+$(this).justtext()+"</h5></li>"
);
subul = $("<ul>");
$("h3",$(this).parent()).each(function(){
subul.append(
- "<li><a href='#'>"+$(this).justtext()+"</a></li>"
+ "<li class=\"nav-header\"><h6>"+$(this).justtext()+"</h6></li>"
);
});
ul.append(subul);