prompt for deletion
This commit is contained in:
@@ -55,6 +55,13 @@ $(function () {
|
||||
}
|
||||
});
|
||||
|
||||
// handle delete note with confirmation
|
||||
$('#delete-note').click(function (e) {
|
||||
if (!confirm('Are you sure you want to delete this note?')) {
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
|
||||
// update content upon sync save
|
||||
connection.on('updateNote', function (content) {
|
||||
$textarea.val(content);
|
||||
|
Reference in New Issue
Block a user