diff --git a/pd/nw/dialog_search.html b/pd/nw/dialog_search.html index c8df742e3280e2f3df1abaeae1b2d6147d6383ce..e543d6d55a3df9e639774b5f1661c4285cdcc3b9 100644 --- a/pd/nw/dialog_search.html +++ b/pd/nw/dialog_search.html @@ -233,9 +233,11 @@ function display_toc() { a.title = doc.id; header = document.createElement("h3"); header.appendChild(a); - text_node = document.createTextNode(doc.description?doc.description:"no description"); div.appendChild(header); - div.appendChild(text_node); + if (doc.description) { + text_node = document.createTextNode(doc.description); + div.appendChild(text_node); + } } else { // make a session title header = document.createElement("h2"); @@ -545,9 +547,11 @@ function display_doc(doc) { a.title = doc.id; header = document.createElement("h3"); header.appendChild(a); - text_node = document.createTextNode(doc.description?doc.description:"no description"); div.appendChild(header); - div.appendChild(text_node); + if (doc.description) { + text_node = document.createTextNode(doc.description); + div.appendChild(text_node); + } results_elem.appendChild(div); }