Fixed editing new post notes duplicating them

This commit is contained in:
rr- 2015-09-16 07:40:07 +02:00
parent a31d5849fc
commit 0edbd9bf40

View file

@ -125,7 +125,7 @@ App.Presenters.PostNotesPresenter = function(
promise.wait(p) promise.wait(p)
.then(function(response) { .then(function(response) {
hideForm(); hideForm();
postNote.id = response.json.id; postNote.id = response.json.note.id;
postNote.$element.data('postNote', postNote); postNote.$element.data('postNote', postNote);
render(); render();
}).fail(function(response) { }).fail(function(response) {