new note inherits type and mime from parent note, closes #20

This commit is contained in:
azivner
2018-01-26 21:31:52 -05:00
parent 0da13994a6
commit b2ff97ccf2
2 changed files with 13 additions and 1 deletions

View File

@@ -71,7 +71,7 @@ const noteEditor = (function() {
// if content is only tags/whitespace (typically <p>&nbsp;</p>), then just make it empty
// this is important when setting new note to code
if ($(note.detail.note_text).text().trim() === '') {
if (jQuery(note.detail.note_text).text().trim() === '') {
note.detail.note_text = ''
}
}