mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-24 21:34:01 +03:00
bug #2510: Fix error when changing between cluster and host in the scheduling tab of the template wizard
This commit is contained in:
parent
090a638a96
commit
07f17f5bf4
@ -3677,15 +3677,11 @@ function add_schedulingTab(dialog) {
|
||||
$("input[name='req_select']").change(function(){
|
||||
if ($("input[name='req_select']:checked").val() == "host_select") {
|
||||
$("div.host_select", $('li#schedulingTab', dialog)).toggle();
|
||||
$("div.host_select", $('li#schedulingTab', dialog)).addClass('vm_param');
|
||||
$("div.cluster_select", $('li#schedulingTab', dialog)).hide();
|
||||
$("div.cluster_select", $('li#schedulingTab', dialog)).removeClass('vm_param');
|
||||
}
|
||||
else {
|
||||
$("div.host_select", $('li#schedulingTab', dialog)).hide();
|
||||
$("div.host_select", $('li#schedulingTab', dialog)).removeClass('vm_param');
|
||||
$("div.cluster_select", $('li#schedulingTab', dialog)).toggle();
|
||||
$("div.cluster_select", $('li#schedulingTab', dialog)).addClass('vm_param');
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user