Skip to content
Snippets Groups Projects
Verified Commit 85f033d5 authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Reload WDS server selection on OS change

parent b264ed1c
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,10 @@ os_selected = function(element){
$('#wds_server_select select').prop('disabled', true);
$('#wds_image_select select').prop('disabled', true);
} else {
if ($('#wds_server_select select').val() !== '') {
wds_server_selected($('#wds_server_select select'));
}
$('#wds_server_select select').prop('disabled', false);
}
};
......
......@@ -8,5 +8,5 @@
disabled: f.object.host.operatingsystem.nil? || f.object.host.operatingsystem.family != 'Windows',
help_inline: :indicator,
required: true,
onchange: 'wds_server_selected(this);', :'data-url' => wds_server_selected_hosts_path, :'data-type' => controller_name.singularize } %>
onchange: 'wds_server_selected(this);', :'data-url' => method_path('wds_server_selected'), :'data-type' => controller_name.singularize } %>
<% end %>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment