From 11746d419c30998542d2fa9c2eac0a18cbd33b8a Mon Sep 17 00:00:00 2001 From: assar Date: Wed, 7 Jun 2017 14:39:28 +0200 Subject: [PATCH] Fixed edit button bug --- static/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/script.js b/static/script.js index d4e4477..45fed1d 100644 --- a/static/script.js +++ b/static/script.js @@ -80,7 +80,7 @@ function end_edit() { var datasheet_par = '

'; $('#datasheet-input').replaceWith(datasheet_par); - var newButton = '
'; + var newButton = '
'; $('.round-button').replaceWith(newButton); } @@ -228,7 +228,7 @@ $(document).ready(function() { newResults += ''; newResults += '
'; - if (data[i].notes != null && notes.length > 0) + if (data[i].notes != null && data[i].notes.length > 0) newResults += '
' + data[i].notes + '
'; //newResults += data[i].notes; newResults += '
';