From 695b6ff373366023b24c3c884e136d00015446e7 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Thu, 29 Oct 2020 12:29:24 +0100 Subject: [PATCH] Stop code execution before starting score --- app/assets/javascripts/editor/evaluation.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/editor/evaluation.js b/app/assets/javascripts/editor/evaluation.js index eb9accf4..b2b8cf82 100644 --- a/app/assets/javascripts/editor/evaluation.js +++ b/app/assets/javascripts/editor/evaluation.js @@ -6,6 +6,7 @@ CodeOceanEditorEvaluation = { */ scoreCode: function (event) { event.preventDefault(); + this.stopCode(event); this.clearScoringOutput(); $('#submit').addClass("d-none"); this.createSubmission('#assess', null, function (response) {