fix points rounding in results view, clear results view on new scoring attempt.
This commit is contained in:
@@ -6,6 +6,7 @@ CodeOceanEditorEvaluation = {
|
||||
*/
|
||||
scoreCode: function (event) {
|
||||
event.preventDefault();
|
||||
this.clearScoringOutput();
|
||||
this.createSubmission('#assess', null, function (response) {
|
||||
this.showSpinner($('#assess'));
|
||||
$('#score_div').removeClass('hidden');
|
||||
@@ -139,6 +140,14 @@ CodeOceanEditorEvaluation = {
|
||||
$('#output pre').remove();
|
||||
},
|
||||
|
||||
clearScoringOutput: function() {
|
||||
$('#results ul').first().html('');
|
||||
$('.test-count .number').html(0);
|
||||
$('#score').data('score', 0);
|
||||
this.renderScore();
|
||||
this.clearOutput();
|
||||
},
|
||||
|
||||
printOutput: function (output, colorize, index) {
|
||||
var element = this.findOrCreateOutputElement(index);
|
||||
if (!colorize) {
|
||||
|
Reference in New Issue
Block a user