From c687eb60e6cb87542695058bce0e083adc598e8f Mon Sep 17 00:00:00 2001 From: assar Date: Thu, 8 Jun 2017 17:09:25 +0200 Subject: [PATCH] Further attempts are made --- static/script.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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);