Remove leftovers from CommunitySubmission code
This code was unintentionally copied over and was never useful (since we won't execute code when submitting a community solution). Co-authored-by: Jan Graichen <jgraichen@altimos.de>
This commit is contained in:

committed by
Sebastian Serth

parent
1feb93c17c
commit
c8609e5392
@ -28,7 +28,6 @@ $(document).on('turbolinks:load', function() {
|
||||
function submitCode(event) {
|
||||
const button = $(event.target) || $('#submit');
|
||||
this.startSentryTransaction(button);
|
||||
this.teardownEventHandlers();
|
||||
this.createSubmission(button, null, function (response) {
|
||||
if (response.redirect) {
|
||||
this.autosaveIfChanged();
|
||||
@ -36,13 +35,6 @@ function submitCode(event) {
|
||||
this.editors = [];
|
||||
Turbolinks.clearCache();
|
||||
Turbolinks.visit(response.redirect);
|
||||
} else if (response.status === 'container_depleted') {
|
||||
this.showContainerDepletedMessage();
|
||||
} else if (response.message) {
|
||||
$.flash.danger({
|
||||
text: response.message
|
||||
});
|
||||
}
|
||||
this.initializeEventHandlers();
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user