aboutsummaryrefslogtreecommitdiffstats
path: root/source/notes.js
diff options
context:
space:
mode:
authorzefanja <zefanja@freenet.de>2014-04-09 19:01:43 +0700
committerzefanja <zefanja@freenet.de>2014-04-09 19:01:43 +0700
commit83cf27f8307387575db72fe20d4ee664a83fd1aa (patch)
treef7a9dc82cc87d6bdefd230eba5bf9167a9208710 /source/notes.js
parent1fe3475936da6c4a071283dc91af638a79c93d91 (diff)
downloadbiblez-ng-83cf27f8307387575db72fe20d4ee664a83fd1aa.tar.gz
* fixed many bugs in the new view
* adding userData will work again
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, '&quot;'), 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);
}));