docs: Minor JSON docs bugfix for hiding a header, remove invalid comment (#87)

This commit is contained in:
Francis Lavoie 2020-09-25 17:33:02 -04:00 committed by GitHub
parent af3676862b
commit 05fa4bcca1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 6 deletions

View file

@ -179,8 +179,8 @@ function beginRendering(json) {
renderData(pageData.structure, 0, "", $('<div class="group"/>'));
console.log("DOCS:", pageDocs);
if ($('#field-list-contents').html().trim()) {
$('#field-list').show();
if ($('#field-list-contents').text().trim()) {
$('#field-list-header').show();
}
// if the browser tried to navigate directly to an element