fix note revisions displaying wrong tooltip

This commit is contained in:
zadam
2020-05-07 23:02:46 +02:00
parent df11b076bc
commit 115879ec4a
3 changed files with 52 additions and 50 deletions

View File

@@ -42,10 +42,12 @@ async function loadNoteRevisions(noteId, noteRevId) {
revisionItems = await server.get(`notes/${noteId}/revisions`);
for (const item of revisionItems) {
$list.append($('<a class="dropdown-item" tabindex="0">')
.text(item.dateLastEdited.substr(0, 16) + ` (${item.contentLength} bytes)`)
.attr('data-note-revision-id', item.noteRevisionId))
.attr('title', 'This revision was last edited on ' + item.dateLastEdited);
$list.append(
$('<a class="dropdown-item" tabindex="0">')
.text(item.dateLastEdited.substr(0, 16) + ` (${item.contentLength} bytes)`)
.attr('data-note-revision-id', item.noteRevisionId)
.attr('title', 'This revision was last edited on ' + item.dateLastEdited)
);
}
$listDropdown.dropdown('show');