aboutsummaryrefslogtreecommitdiffstats
path: root/source/notes.js
diff options
context:
space:
mode:
Diffstat (limited to 'source/notes.js')
-rw-r--r--source/notes.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/notes.js b/source/notes.js
index 5a39c23..d1bd1bc 100644
--- a/source/notes.js
+++ b/source/notes.js
@@ -58,6 +58,7 @@ enyo.kind({
api.putNote({id: this.noteId, text: this.$.noteInput.getValue().replace(/"/g, '"'), osisRef: this.osisRef}, enyo.bind(this, function (inError, inId) {
if(!inError) {
this.doChange({action: "update", osisRef: this.osisRef});
+ this.doBack();
} else
console.log(inError);
}));
@@ -67,7 +68,6 @@ enyo.kind({
api.removeNote({id: this.noteId, osisRef: this.osisRef}, enyo.bind(this, function (inError) {
if(!inError) {
this.doChange({action: "remove", osisRef: this.osisRef});
- this.doBack();
} else
this.handleError(inError);
}));