Reuse jQuery selector where possible
This commit is contained in:

committed by
Sebastian Serth

parent
affeb2d3ba
commit
5b35ccdfe8
@@ -163,7 +163,7 @@ CodeOceanEditorSubmissions = {
|
||||
this.startSentryTransaction(cause);
|
||||
event.preventDefault();
|
||||
this.stopCode(event);
|
||||
if ($('#run').is(':visible')) {
|
||||
if (cause.is(':visible')) {
|
||||
this.createSubmission(cause, null, this.runSubmission.bind(this));
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user