search for: ip_div

Displaying 3 results from an estimated 3 matches for "ip_div".

Did you mean: dp_div
2010 Sep 21
1
[PATCH] Introduce ability to select any kind of nic model, not just default or virtio.
...ype.proto == 'static' %>; jnic.selected = false; jnic.row = null; @@ -270,15 +273,15 @@ ${htmlList(pools, id)} $('#vm_network_config_mac_'+row).attr('value', nic.mac); // show / hide ip address textbox - ip_div = $('#vm_network_config_mac_'+row).parent().next(); + ip_div = $('#vm_network_config_model_'+row).parent().next(); if(nic.static_ip){ ip_div.html('<input name="ip_addresses[]" id="#vm_network_config_ip_'+row+'&quot...
2009 Jul 30
1
[PATCH server] fixes to the multiple vm/nets component
..._config_select:not(#vm_network_config_select_'+row+') option[@value='+nic.network_id+']').hide(); + + // fill in mac + $('#vm_network_config_mac_'+row).attr('value', nic.mac); + + // show / hide ip address textbox + ip_div = $('#vm_network_config_mac_'+row).parent().next(); + if(nic.static_ip){ + ip_div.html('<input name="ip_addresses[]" id="#vm_network_config_ip_'+row+'" value="'+nic.ip+'" />'); + }else{ +...
2010 Aug 25
2
[PATCH] Virtio support
...jnic.virtio = <%= rnic.virtio ? 'true' : 'false' %>; jnic.static_ip = <%= rnic.network.boot_type.proto == 'static' %>; jnic.selected = false; jnic.row = null; @@ -260,6 +273,9 @@ ${htmlList(pools, id)} ip_div.html('&nbsp;'); } + // set virtio if checked + $('#vm_network_config_virtio_'+row).attr('checked', nic.virtio ? 'checked' : ''); + // show new row only if last row's select box was // pr...