Skip to content

Commit

Permalink
Fixes #18468 - Include JS in libvirt compute profile form
Browse files Browse the repository at this point in the history
When the form is loaded via XHR the needed JavaScript
is not loaded and selecting of certain attributes fail.
  • Loading branch information
bastilian authored and dLobatog committed Feb 14, 2017
1 parent f394cd9 commit ec7fc1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/views/compute_resources_vms/form/libvirt/_base.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<%= javascript_include_tag 'compute_resource' %>
<%= javascript_tag("$(document).on('ContentLoad', tfm.numFields.initAll)"); %>
<%= text_f f, :name, :label => _('Name'), :label_size => "col-md-2", :disabled => !new_host if show_vm_name? %>
Expand Down

0 comments on commit ec7fc1b

Please sign in to comment.