Skip to content

Commit

Permalink
Merge pull request #250 from suchow/clean-js-in-function-learning
Browse files Browse the repository at this point in the history
Clean up duplicated getInfo function
  • Loading branch information
suchow committed Nov 2, 2015
2 parents b3a6019 + ccd00e6 commit 6967c9f
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions examples/function-learning/static/js/task.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,28 +90,6 @@ var FunctionLearningExperiment = function() {
});
};

getInfo = function(info_id) {
reqwest({
url: "/info",
method: 'get',
data: { participant_id: uniqueId, node_id: my_node_id, info_id: info_id },
type: 'json',
success: function (resp) {
story = resp.infos[0].contents;
storyHTML = markdown.toHTML(story);
$("#story").html(storyHTML);
$("#stimulus").show();
$("#response-form").hide();
$("#finish-reading").show();
},
error: function (err) {
console.log(err);
err_response = JSON.parse(err.response);
$('body').html(err_response.html);
}
});
};

getInfo = function(info_id) {
reqwest({
url: "/info",
Expand Down

0 comments on commit 6967c9f

Please sign in to comment.