File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 375375 if ( selected == "Haven't submitted yet" ) {
376376 return ! student . submitted_at && ! student . graded_at ;
377377 } else if ( selected == "Scored less than" ) {
378- return student . score != null && student . score != "" && cutoff != null && student . score < cutoff ;
378+ return student . score != null && student . score !== "" && cutoff != null && student . score < cutoff ;
379379 } else if ( selected == "Scored more than" ) {
380- return student . score != null && student . score != "" && cutoff != null && student . score > cutoff ;
380+ return student . score != null && student . score !== "" && cutoff != null && student . score > cutoff ;
381381 }
382382 } ) ;
383383 return $ . map ( students , function ( student ) { return student . user_data . id } ) ;
Original file line number Diff line number Diff line change 9999 var idx = parseInt ( $ ( this ) . val ( ) , 10 ) || 0 ;
100100 var option = currentSettings . options [ idx ] ;
101101 var students_hash = $message_students_dialog . data ( 'students_hash' ) ,
102- cutoff = parseFloat ( $message_students_dialog . find ( ".cutoff_score" ) . val ( ) , 10 ) || null ;
102+ cutoff = parseFloat ( $message_students_dialog . find ( ".cutoff_score" ) . val ( ) , 10 ) ;
103+ if ( ! cutoff && cutoff !== 0 ) {
104+ cutoff = null ;
105+ }
103106 var student_ids = null ;
104107 var students_list = [ ] ;
105108 for ( var idx in students_hash ) { students_list . push ( students_hash [ idx ] ) ; }
125128 }
126129 } ) ;
127130 } ) ;
128- } ) ( ) ;
131+ } ) ( ) ;
You can’t perform that action at this time.
0 commit comments