Permalink
Browse files

Fixed issue where deleting a note with prompt dialogs turned off woul…

…d toggle note edit mode;
  • Loading branch information...
1 parent 481326d commit 4f98c42f025bf66c2d53a0ac7dc0232fe4d17f0b @adamrenklint adamrenklint committed Aug 26, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 js/notes/note.js
View
@@ -94,8 +94,7 @@ $(function() {
if (Titanium.App.Properties.getString('delete_prompt', '1') == 1) {
dialogs.openNoteDeleteDialog();
} else {
- $('textarea#noteTextarea').val('');
- $('input#save').click();
+ $('input#save').trigger('deleteNote');
}
});

0 comments on commit 4f98c42

Please sign in to comment.