fixes to recent changes

This commit is contained in:
azivner
2017-12-03 17:46:56 -05:00
parent 34f1eb930c
commit 3a26054619
3 changed files with 52 additions and 19 deletions

View File

@@ -33,9 +33,18 @@ const recentChanges = (function() {
.attr('note-path', change.note_id)
.attr('note-history-id', change.note_history_id);
let noteLink;
if (change.current_is_deleted) {
noteLink = change.current_note_title;
}
else {
noteLink = link.createNoteLink(change.note_id, change.note_title);
}
changesListEl.append($('<li>')
.append(formattedTime + ' - ')
.append(link.createNoteLink(change.note_id))
.append(noteLink)
.append(' (').append(revLink).append(')'));
}