search for: vm_provisioning_and_boot_settings

Displaying 1 result from an estimated 1 matches for "vm_provisioning_and_boot_settings".

2009 Aug 04
3
[PATCH server] require at least one vm network if pxe booting
...@ ${htmlList(pools, id)} $('#vm_network_config_select_<%= i %>').val("<%= @vm.nics[i].network_id %>").trigger('change'); <% } end %> + + // wire up provision select box to autoselect a network if necessary + $('#vm_provisioning_and_boot_settings').bind('change', function(e){ + + // if at least one network is already selected do nothing + for(i = 0; i < nics.length; ++i){ + if(nics[i].selected){ + return; + } + } + + // only set value if we have a network to set...