mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
added titles with full date time including timezone offset also to note revisions dialog/widget
This commit is contained in:
parent
90d091aedb
commit
5c35b870eb
@ -44,7 +44,8 @@ async function loadNoteRevisions(noteId, noteRevId) {
|
|||||||
for (const item of revisionItems) {
|
for (const item of revisionItems) {
|
||||||
$list.append($('<a class="dropdown-item" tabindex="0">')
|
$list.append($('<a class="dropdown-item" tabindex="0">')
|
||||||
.text(item.dateLastEdited.substr(0, 16) + ` (${item.contentLength} bytes)`)
|
.text(item.dateLastEdited.substr(0, 16) + ` (${item.contentLength} bytes)`)
|
||||||
.attr('data-note-revision-id', item.noteRevisionId));
|
.attr('data-note-revision-id', item.noteRevisionId))
|
||||||
|
.attr('title', 'This revision was last edited on ' + item.dateLastEdited);
|
||||||
}
|
}
|
||||||
|
|
||||||
$listDropdown.dropdown('show');
|
$listDropdown.dropdown('show');
|
||||||
|
@ -59,6 +59,7 @@ class NoteRevisionsWidget extends CollapsibleWidget {
|
|||||||
'data-action': 'note-revision',
|
'data-action': 'note-revision',
|
||||||
'data-note-path': note.noteId,
|
'data-note-path': note.noteId,
|
||||||
'data-note-revision-id': item.noteRevisionId,
|
'data-note-revision-id': item.noteRevisionId,
|
||||||
|
title: 'This revision was last edited on ' + item.dateLastEdited,
|
||||||
href: 'javascript:'
|
href: 'javascript:'
|
||||||
}).text(item.dateLastEdited.substr(0, 16)));
|
}).text(item.dateLastEdited.substr(0, 16)));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user