diff options
author | Tom Willemse | 2013-07-05 00:37:44 +0200 |
---|---|---|
committer | Tom Willemse | 2013-07-05 00:37:44 +0200 |
commit | 901fc7b5dcc0acf08b3e85d2160034ee47daedb2 (patch) | |
tree | 7cf6f640807262faa1008da581f7579783509a72 /static | |
parent | 74ec275c8f1d779703f609dbc29ccd7ad94f690c (diff) | |
download | scrumli-901fc7b5dcc0acf08b3e85d2160034ee47daedb2.tar.gz scrumli-901fc7b5dcc0acf08b3e85d2160034ee47daedb2.zip |
Pass story id as POST parameter
For some reason using a route template "stories/:id/tasks/new" works
locally, but not on my server, so do without.
Diffstat (limited to 'static')
-rw-r--r-- | static/js/main.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/static/js/main.js b/static/js/main.js index 7aac80d..60988df 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -103,8 +103,10 @@ var StoryTaskForm = React.createClass({ var StoryData = React.createClass({ handleTaskSubmit: React.autoBind(function (task) { + task.storyId = this.props.data.id; + $.ajax({ - url: "/stories/" + this.props.data.id + "/tasks/new", + url: "/stories/tasks/new", type: "POST", data: task, dataType: 'json', |