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) {
|
||||
if (response.redirect) {
|
||||
this.autosaveIfChanged();
|
||||
this.stopCode(event);
|
||||
this.editors = [];
|
||||
Turbolinks.clearCache();
|
||||
Turbolinks.visit(response.redirect);
|
||||
|
Reference in New Issue
Block a user