Fix ambiguity in history table ID.

This commit is contained in:
Imran Sobir 2017-03-09 21:41:57 +05:00
parent 3fbeecbec2
commit 19b7f779ef

View File

@ -46,8 +46,8 @@ window.loadHistory = (function() {
*/
function getSessionNode(date) {
// Find/create table
var tableId = "hist-".concat(date.getDate(), date.getMonth(),
date.getYear());
var tableId = ["hist", date.getDate(), date.getMonth(),
date.getYear()].join("-");
var table = document.getElementById(tableId);
if (table === null) {
table = document.createElement("table");