UI - Adding mouseover/title to show absolute date/time of a last-change or last-checked date #1860

This commit is contained in:
dgtlmoon
2023-10-17 14:03:19 +02:00
parent 1d5fe51157
commit 9cb636e638
2 changed files with 10 additions and 2 deletions

View File

@@ -4,6 +4,14 @@ $(function () {
$(this).closest('.unviewed').removeClass('unviewed');
});
$('td[data-timestamp]').each(function () {
$(this).prop('title', new Intl.DateTimeFormat(undefined,
{
dateStyle: 'full',
timeStyle: 'long'
}).format($(this).data('timestamp') * 1000));
})
$("#checkbox-assign-tag").click(function (e) {
$('#op_extradata').val(prompt("Enter a tag name"));
});