Show poll creator on hover of timestamp

This commit is contained in:
Xaekai 2018-05-28 14:01:42 -07:00 committed by Calvin Montgomery
parent fdab26b792
commit a632a4cafa
1 changed files with 1 additions and 0 deletions

View File

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