Skip to content

Commit

Permalink
www/js/Logbook: Show new log entries on the top.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmarques committed Sep 1, 2017
1 parent 8560395 commit 448c928
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions www/js/Logbook.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ Logbook.prototype.update = function() {
continue;

var msgType = typeAsString(msg.type);
logbookStr += "<p class=\"" + msgType + "\">" +
logbookStr = "<p class=\"" + msgType + "\">" +
"[" + dateToString(msg.timestamp) + "] - "
+ msgType +
" " + "[" + msg.context + "] >> " +
msg.text +
"<\p>";
"<\p>" +
logbookStr;
}

this.m_base.innerHTML = logbookStr;
Expand Down

0 comments on commit 448c928

Please sign in to comment.