Fixed url redirect after submission, upvoting now works

This commit is contained in:
Nathan Leniz
2015-03-05 19:40:44 +09:00
parent 41442a540f
commit 40a42e29c2
3 changed files with 7 additions and 7 deletions

View File

@@ -177,9 +177,7 @@ $(document).ready(function() {
$('#story-submit').bind('click', storySubmitButtonHandler);
})
.done(function (data, textStatus, xhr) {
window.dataReturn = data;
console.log(data);
window.location = '/stories/' + data.storyLink;
window.location = '/stories/' + JSON.parse(data).storyLink;
});
};