Skip to content
Snippets Groups Projects
Commit de3d2438 authored by Albert Gräf's avatar Albert Gräf
Browse files

Get rid of dummy 'no description' lines when there is no description.

parent 55869873
No related branches found
No related tags found
Loading
...@@ -233,9 +233,11 @@ function display_toc() { ...@@ -233,9 +233,11 @@ function display_toc() {
a.title = doc.id; a.title = doc.id;
header = document.createElement("h3"); header = document.createElement("h3");
header.appendChild(a); header.appendChild(a);
text_node = document.createTextNode(doc.description?doc.description:"no description");
div.appendChild(header); div.appendChild(header);
div.appendChild(text_node); if (doc.description) {
text_node = document.createTextNode(doc.description);
div.appendChild(text_node);
}
} else { } else {
// make a session title // make a session title
header = document.createElement("h2"); header = document.createElement("h2");
...@@ -545,9 +547,11 @@ function display_doc(doc) { ...@@ -545,9 +547,11 @@ function display_doc(doc) {
a.title = doc.id; a.title = doc.id;
header = document.createElement("h3"); header = document.createElement("h3");
header.appendChild(a); header.appendChild(a);
text_node = document.createTextNode(doc.description?doc.description:"no description");
div.appendChild(header); div.appendChild(header);
div.appendChild(text_node); if (doc.description) {
text_node = document.createTextNode(doc.description);
div.appendChild(text_node);
}
results_elem.appendChild(div); results_elem.appendChild(div);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment