mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-26 06:50:09 +03:00
Bug #4315: Template wizard should allow to remove GRAPHICS section
This commit is contained in:
parent
ee0c3ce351
commit
b01ad72ad6
@ -73,8 +73,12 @@ define(function(require) {
|
||||
|
||||
function _setup(context) {
|
||||
$("input[name='graphics_type']", context).change(function() {
|
||||
$("#TYPE", context).val($(this).attr("value"))
|
||||
$("#LISTEN", context).val("0.0.0.0")
|
||||
$("#TYPE", context).val($(this).attr("value"));
|
||||
if ($(this).attr("value") !== '') {
|
||||
$("#LISTEN", context).val("0.0.0.0");
|
||||
} else {
|
||||
$("#LISTEN", context).val('');
|
||||
}
|
||||
});
|
||||
|
||||
context.off("click", '#add_input');
|
||||
|
@ -20,6 +20,8 @@
|
||||
<legend>{{tr "Graphics"}}</legend>
|
||||
<div class="row">
|
||||
<div class="large-12 columns text-center">
|
||||
<input type="radio" name="graphics_type" ID="radioNoneType" value="">
|
||||
<label for="radioNoneType">{{tr "None"}}</label>
|
||||
<input type="radio" name="graphics_type" ID="radioVncType" value="VNC">
|
||||
<label for="radioVncType">VNC</label>
|
||||
<input type="radio" name="graphics_type" ID="radioSdlType" value="SDL" class="hypervisor only_kvm only_vmware only_xen" >
|
||||
|
Loading…
x
Reference in New Issue
Block a user