wip making UI actions for notes
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user