diff options
Diffstat (limited to 'source/notes.js')
-rw-r--r-- | source/notes.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/notes.js b/source/notes.js index 3507080..5f24983 100644 --- a/source/notes.js +++ b/source/notes.js @@ -36,11 +36,11 @@ enyo.kind({ }, osisRefChanged: function (inSender, inEvent) { + this.$.noteInput.setValue(""); this.$.label.setContent($L("Notes for") + " " + api.formatOsis(this.osisRef)); }, noteIdChanged: function () { - this.$.noteInput.setValue(""); if (this.noteId !== null) { api.getNote(this.noteId, enyo.bind(this, function (inError, inNote) { if(!inError) { @@ -74,8 +74,10 @@ enyo.kind({ }, handleBack: function() { - if(this.$.noteInput.getValue() !== "") + if(this.$.noteInput.getValue() !== "" || this.$.noteInput.getValue() !== " ") { this.updateNote(); + this.$.noteInput.setValue(" "); + } this.doBack(); }, |