Stop code prior to new run attempt
This commit is contained in:
@ -155,6 +155,7 @@ CodeOceanEditorSubmissions = {
|
|||||||
*/
|
*/
|
||||||
runCode: function(event) {
|
runCode: function(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
this.stopCode(event);
|
||||||
if ($('#run').is(':visible')) {
|
if ($('#run').is(':visible')) {
|
||||||
this.createSubmission('#run', null, this.runSubmission.bind(this));
|
this.createSubmission('#run', null, this.runSubmission.bind(this));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user