From 1398b515965a34e330347734a51c86f9549734e1 Mon Sep 17 00:00:00 2001 From: Davide Bongiovanni Date: Wed, 15 Feb 2017 10:40:25 +0100 Subject: [PATCH] Fixed some visuals --- static/script.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/static/script.js b/static/script.js index d9566ff..51d25e0 100644 --- a/static/script.js +++ b/static/script.js @@ -41,14 +41,14 @@ $(document).ready(function() { var newElement = '
\
' + dateString + '
\
'; - if (eventHistory[i].action == "fridge") - newElement += ''; - else if (eventHistory[i].action == "tools") - newElement += ''; if (eventHistory[i].name == "") newElement += '' + eventHistory[i].cardID + ''; else newElement += eventHistory[i].name; + if (eventHistory[i].action == "fridge") + newElement += ' '; + else if (eventHistory[i].action == "tools") + newElement += ' '; newElement += '
\
'; newHistory += newElement;