diff --git a/app/assets/javascripts/community_solution.js b/app/assets/javascripts/community_solution.js index d16f0c8c..ca533e0d 100644 --- a/app/assets/javascripts/community_solution.js +++ b/app/assets/javascripts/community_solution.js @@ -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(); }) }