From 3cde783bdf6722b58428d6e3fbbb30540fc27cdb Mon Sep 17 00:00:00 2001 From: David Ormsbee Date: Wed, 19 Sep 2012 17:37:15 -0400 Subject: [PATCH] Display the last top level element in the Table of Contents as expandable. This isn't a great fix, but I'm confused what's going on. It's something in JQuery.TreeView. We write out the HTML correctly, but the lastExpandable style causes the list item to not be expandable. This didn't bite us in 6.002x because the last item was an appendix that isn't expandable anyway. It does affect 6.00x, where the last item is Chapter 5 at the moment. --- lms/templates/staticbook.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lms/templates/staticbook.html b/lms/templates/staticbook.html index ab92d22257..f99bfb6d92 100644 --- a/lms/templates/staticbook.html +++ b/lms/templates/staticbook.html @@ -97,6 +97,10 @@ $("#open_close_accordion a").click(function(){ % for entry in table_of_contents: ${print_entry(entry)} % endfor + + ## Don't delete this empty list item. Without it, Jquery.TreeView won't + ## render the last list item as expandable. +