fnp
/
edumed.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
f7dccdcd41017282c9e496fb1a75895f0faefc30
[edumed.git]
/
wtem
/
static
/
wtem
/
wtem.js
1
$(function() {
2
3
$('#submit_answers').click(function(e) {
4
e.preventDefault();
5
var to_submit = [];
6
$('.exercise').each(function() {
7
var exercise = $(this).data('exercise');
8
if(exercise.get_answers) {
9
to_submit.push(exercise.get_answers()[0]);
10
}
11
});
12
console.log(JSON.stringify(to_submit));
13
});
14
15
});