mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 18:11:40 -05:00
use modified post object in callbacks
This commit is contained in:
parent
59b56d79df
commit
38b4296755
1 changed files with 1 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue