diff --git a/themes/bootstrap2/static/js/autosidebar.js b/themes/bootstrap2/static/js/autosidebar.js new file mode 100644 index 0000000000000000000000000000000000000000..b9cef7e3eb08f5b6b5b4017cd25e5cf6dbae6f00 --- /dev/null +++ b/themes/bootstrap2/static/js/autosidebar.js @@ -0,0 +1,30 @@ +jQuery.fn.justtext = function() { + return $(this).clone() + .children() + .remove() + .end() + .text(); + +}; + +$(document).ready(function(){ + $("h1").each(function(){ + $("#sidebar").append( + "
  • "+$(this).children()[0].justtext()+"

  • " + ); + ul = $("