From c8609e5392b0a66952bbbb5edc92162b05dc79e3 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Fri, 24 May 2024 12:55:28 +0200 Subject: [PATCH] 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 --- app/assets/javascripts/community_solution.js | 8 -------- 1 file changed, 8 deletions(-) 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(); }) }