Fixed bbode element toc for webpages

- At the moment webpages can contain empty headings if the textarea
"Title" 
is left empty in the webpage creator
(https://hostname/webpages/username)
This commit is contained in:
Einer von Vielen
2015-01-18 14:21:26 +01:00
parent 6657712714
commit 123ca1d403
2 changed files with 32 additions and 25 deletions

View File

@@ -1125,7 +1125,7 @@ $(document).ready(function() {
$(".autotime").timeago();
$("#toc").toc({content: "div.page-body", headings: "h1,h2,h3,h4"});
$("#toc").toc({content: "body", headings: "h1,h2,h3,h4"});
});