Fixed some visuals

master
Davide Bongiovanni 8 years ago
parent ce01de459d
commit 1398b51596

@ -41,14 +41,14 @@ $(document).ready(function() {
var newElement = '<div class="event" card-id="' + eventHistory[i].cardID + '">\
<div class="time">' + dateString + '</div>\
<div class="name">';
if (eventHistory[i].action == "fridge")
newElement += '<i class="fa fa-snowflake-o"></i>';
else if (eventHistory[i].action == "tools")
newElement += '<i class="fa fa-wrench"></i>';
if (eventHistory[i].name == "")
newElement += '<span class="unknown_card">' + eventHistory[i].cardID + '</span>';
else
newElement += eventHistory[i].name;
if (eventHistory[i].action == "fridge")
newElement += '&nbsp;<i class="fa fa-snowflake-o"></i>';
else if (eventHistory[i].action == "tools")
newElement += '&nbsp;<i class="fa fa-wrench"></i>';
newElement += '</div>\
</div>';
newHistory += newElement;

Loading…
Cancel
Save