From 73b45e12108af74a601d86e4ea96bc2120763cab Mon Sep 17 00:00:00 2001 From: Henne Vogelsang Date: Mon, 27 May 2024 17:27:24 +0200 Subject: [PATCH] Drop remains of resetting subscriptions to default This got added in #4186 and #4384 and then removed while switching interfaces to bootstrap in #8341. Fixes #16198 which was caused by a spammer script going back and forth on routes with format=js because it could not acknowledge a status message anymore. Thanks spammer, keep up the good work! --- .../app/controllers/webui/users/subscriptions_controller.rb | 5 ----- src/api/app/views/webui/users/subscriptions/index.js.haml | 1 - 2 files changed, 6 deletions(-) delete mode 100644 src/api/app/views/webui/users/subscriptions/index.js.haml diff --git a/src/api/app/controllers/webui/users/subscriptions_controller.rb b/src/api/app/controllers/webui/users/subscriptions_controller.rb index 5760fd5c26b..f97285a3e44 100644 --- a/src/api/app/controllers/webui/users/subscriptions_controller.rb +++ b/src/api/app/controllers/webui/users/subscriptions_controller.rb @@ -7,11 +7,6 @@ class Webui::Users::SubscriptionsController < Webui::WebuiController def index @user = User.session! @groups_users = @user.groups_users.includes(:group).order('groups.title') - - respond_to do |format| - format.html - format.js - end end def update diff --git a/src/api/app/views/webui/users/subscriptions/index.js.haml b/src/api/app/views/webui/users/subscriptions/index.js.haml deleted file mode 100644 index 7e240ae8a9c..00000000000 --- a/src/api/app/views/webui/users/subscriptions/index.js.haml +++ /dev/null @@ -1 +0,0 @@ -$('#subscriptions-form').replaceWith("#{escape_javascript(render(partial: 'webui/subscriptions/subscriptions_form'))}");