Render submit button once results are available

This commit is contained in:
Sebastian Serth
2020-03-04 17:58:16 +01:00
parent 58031587de
commit 99e4aec1cb
2 changed files with 3 additions and 1 deletions

View File

@ -7,6 +7,7 @@ CodeOceanEditorEvaluation = {
scoreCode: function (event) {
event.preventDefault();
this.clearScoringOutput();
$('#submit').addClass("d-none");
this.createSubmission('#assess', null, function (response) {
this.showSpinner($('#assess'));
$('#score_div').removeClass('d-none');
@ -22,6 +23,7 @@ CodeOceanEditorEvaluation = {
}, 0).toFixed(2);
$('#score').data('score', score);
this.renderScore();
$('#submit').removeClass("d-none");
},
printScoringResult: function (result, index) {