Stop Code before redirecting after submit
Usually, this should not be needed, but users can first submit code and simultaneously request comments. Fixes CODEOCEAN-KM
This commit is contained in:
@ -205,6 +205,7 @@ CodeOceanEditorSubmissions = {
|
|||||||
this.createSubmission(button, null, function (response) {
|
this.createSubmission(button, null, function (response) {
|
||||||
if (response.redirect) {
|
if (response.redirect) {
|
||||||
this.autosaveIfChanged();
|
this.autosaveIfChanged();
|
||||||
|
this.stopCode(event);
|
||||||
this.editors = [];
|
this.editors = [];
|
||||||
Turbolinks.clearCache();
|
Turbolinks.clearCache();
|
||||||
Turbolinks.visit(response.redirect);
|
Turbolinks.visit(response.redirect);
|
||||||
|
Reference in New Issue
Block a user