diff --git a/static/script.js b/static/script.js index bd80d9a..2f46393 100644 --- a/static/script.js +++ b/static/script.js @@ -212,16 +212,18 @@ function perform_query() { var notes = $('
'); if (data[i].notes != null && data[i].notes.length > 0) { var icon = $(''); - var tooltipText = $('
'); var tooltip = $('
'); tooltip.append(icon, tooltipText); notes.append(tooltip); } newClicker.append(notes); - newClicker.append($('
') - .html('')); + var datasheet = $('
'); + if (data[i].datasheet != null) + datasheet.html(''); + newClicker.append(datasheet); newRow.append(newClicker); newResults.append(newRow);