use modified post object in callbacks

This commit is contained in:
Sacha Greif 2015-06-30 19:31:23 +09:00
parent 59b56d79df
commit 38b4296755

View file

@ -28,9 +28,8 @@ AutoForm.hooks({
},
onSuccess: function(formType, post) {
post = this.currentDoc;
Events.track("edit post", {'postId': post._id});
Router.go('post_page', {_id: post._id});
Router.go('post_page', post);
},
onError: function(formType, error) {