Commit e9447f51 authored by Louis's avatar Louis

Il est à nouveau possible de générer plusieurs exercices différents.

Closes #5.
parent 94cffb59
......@@ -89,10 +89,10 @@ function generateSeeds(count) {
return seeds.join(",");
}
$('#idForm').submit(function(){ //listen for submit event
$('#idForm').children(".seed").remove();
$.each(exolist, function(i,exo){
count = Number($("#ex-" + exo + " :selected").text());
if (count) {
$('#idForm').children(".seed").remove();
$('<input />').attr('type', 'hidden')
.attr('name', exo)
.attr('class', 'seed')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment