client: recent changes list: make the whole item clickable, not just the note title

This commit is contained in:
Adorian Doran
2024-12-13 02:11:51 +02:00
parent aee8749bac
commit 6e1cfdbb89
2 changed files with 16 additions and 0 deletions

View File

@@ -120,6 +120,12 @@ export default class RecentChangesDialog extends BasicWidget {
}
$changesList.append($('<li>')
.on("click", (e) => {
if (e.target?.nodeName !== "A") { // Ignore clicks on the link
// Open the current note
appContext.tabManager.getActiveContext().setNote(change.noteId);
}
})
.append(
$("<span>")
.text(formattedTime)