From 5a29f0c9ba9399b3a587f143392cc1e7c92e6aa0 Mon Sep 17 00:00:00 2001 From: martimiz Date: Thu, 8 Nov 2012 16:35:40 +0100 Subject: [PATCH] Relocate table of contents The table of contents is removed from the sidebar and relocated underneath breadcrumbs and page title (if there is one). It can be toggled open and closed. --- javascript/DocumentationViewer.js | 32 ++++++++++++++++++++++--- templates/Layout/DocumentationViewer.ss | 1 - 2 files changed, 29 insertions(+), 4 deletions(-) diff --git a/javascript/DocumentationViewer.js b/javascript/DocumentationViewer.js index c7ef71a..d629dba 100755 --- a/javascript/DocumentationViewer.js +++ b/javascript/DocumentationViewer.js @@ -6,8 +6,9 @@ * * Transform a #table-of-contents div to a nested list */ - if($("#table-of-contents").length > 0) { - var toc = '