Add timestamps to polls.

Closes #562
This commit is contained in:
Xaekai 2016-07-07 06:53:06 -07:00
parent f75d40d278
commit 5896a1c0eb
4 changed files with 10 additions and 4 deletions

View file

@ -937,6 +937,8 @@ Callbacks = {
})(i);
}
$("<span/>").addClass("label label-default pull-right").data('timestamp',data.timestamp).appendTo(poll)
.text(new Date(data.timestamp).toTimeString().split(" ")[0]);
poll.find(".btn").attr("disabled", !hasPermission("pollvote"));
},