Minor bug fix

This commit is contained in:
Martin Kleinschrodt 2013-11-26 23:55:38 +01:00
parent c6155d3302
commit 0634f43930
1 changed files with 3 additions and 5 deletions

View File

@ -115,9 +115,6 @@
record.fields = record.fields.filter(function(field) {
return field.name || field.value;
});
if (record.isNew) {
this.openListView();
}
delete record.isNew;
this.collection.save();
}
@ -157,11 +154,12 @@
this.editing = true;
},
editDone: function() {
var isNew = this.selected.isNew;
this.saveRecord();
if (this.selected.isNew) {
if (isNew) {
this.openListView();
}
this.editing = false;
this.editCopy = null;
},