Remove obsolete context-type attribute for submissions
The value and function is no longer used.
This commit is contained in:

committed by
Sebastian Serth

parent
6d62dfc3de
commit
bf0e6149da
@@ -537,10 +537,6 @@ var CodeOceanEditor = {
|
||||
return this.isActiveFileRunnable() && this.running;
|
||||
},
|
||||
|
||||
isActiveFileSubmission: function () {
|
||||
return ['Submission'].includes(this.active_frame.data('contextType'));
|
||||
},
|
||||
|
||||
isActiveFileTestable: function () {
|
||||
return this.isActiveFileExecutable() && ['teacher_defined_test', 'user_defined_test', 'teacher_defined_linter'].includes(this.active_frame.data('role'));
|
||||
},
|
||||
|
Reference in New Issue
Block a user