wip making UI actions for notes

This commit is contained in:
Ryan Peters
2025-07-17 16:42:25 -04:00
parent 11f468a5c1
commit 14e56285f5
7 changed files with 55 additions and 30 deletions

View File

@@ -47,6 +47,14 @@ $(function () {
// set focus on load
$textarea.focus();
// handle note dropdown change
$('#note-dropdown').change(function () {
var selectedNote = $(this).val();
if (selectedNote && selectedNote !== noteName) {
window.location.href = selectedNote;
}
});
// update content upon sync save
connection.on('updateNote', function (content) {
$textarea.val(content);