Allow clicking on submit only once

This commit is contained in:
Sebastian Serth
2020-10-28 13:19:59 +01:00
parent 4cb34a611d
commit e8d274a4a4

View File

@ -377,7 +377,7 @@ var CodeOceanEditor = {
initializeWorkspaceButtons: function () {
$('#submit').on('click', this.submitCode.bind(this));
$('#submit').one('click', this.submitCode.bind(this));
$('#assess').on('click', this.scoreCode.bind(this));
$('#dropdown-render, #render').on('click', this.renderCode.bind(this));
$('#dropdown-run, #run').on('click', this.runCode.bind(this));