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

Replace 'null' description by something more sensible.

parent 7ebb0355
No related branches found
No related tags found
No related merge requests found
...@@ -134,7 +134,7 @@ function display_toc() { ...@@ -134,7 +134,7 @@ 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); text_node = document.createTextNode(doc.description?doc.description:"no description");
div.appendChild(header); div.appendChild(header);
div.appendChild(text_node); div.appendChild(text_node);
results_elem.appendChild(div); results_elem.appendChild(div);
...@@ -439,7 +439,7 @@ function display_doc(doc) { ...@@ -439,7 +439,7 @@ 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); text_node = document.createTextNode(doc.description?doc.description:"no description");
div.appendChild(header); div.appendChild(header);
div.appendChild(text_node); 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