Commit f501b556 authored by Myriam Delaruelle's avatar Myriam Delaruelle
Browse files

added less than/more than filters

parent 0ab50c51
......@@ -125,6 +125,25 @@ define(['jquery', 'core/ajax', 'core/templates', 'core/str'],
}
}
else if(symbol==">"){
if(data.students[i].percentage > filter){
data.count_results++;
data.students[i].visible=true;
}
else{
data.students[i].visible=false;
}
}
else if(symbol==""){
console.log("on passe ici");
if(data.students[i].percentage <= filter){
data.count_results++;
data.students[i].visible=true;
}
else{
data.students[i].visible=false;
}
}
else if(symbol == ""){
if(data.students[i].percentage >= filter){
data.count_results++;
data.students[i].visible=true;
......
......@@ -331,6 +331,14 @@ $symbols=[
">"=>(object)[
"value"=>">",
"name"=>">",
],
"≤"=>(object)[
"value"=>"≤",
"name"=>"≤",
],
"≥"=>(object)[
"value"=>"≥",
"name"=>"≥",
]
];
......
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