From 6f2a754f807fbc590063621d062421c53f5ba2f7 Mon Sep 17 00:00:00 2001 From: MariaAga Date: Mon, 16 Dec 2024 14:09:39 +0000 Subject: [PATCH] Fixes #38104 - Hide Media when Synced Content is selected --- .../_host_synced_content_select.html.erb | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/app/views/overrides/activation_keys/_host_synced_content_select.html.erb b/app/views/overrides/activation_keys/_host_synced_content_select.html.erb index a94e6833f67..068050cd177 100644 --- a/app/views/overrides/activation_keys/_host_synced_content_select.html.erb +++ b/app/views/overrides/activation_keys/_host_synced_content_select.html.erb @@ -23,9 +23,15 @@ :class => 'form-control', :name => ks_repo_select_name, :disabled => kickstart_options.empty? %> <% end %> -<% content_for(:javascripts) do -%> - -<% end -%> \ No newline at end of file + } + else { + $(document).on('ContentLoad', function(){ + KT.hosts.set_media_selection_bindings(); + KT.hosts.update_media_enablement(); + }); + } +