mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-30 22:50:10 +03:00
Bug #4050: Fix checkbox inputs when values are set manually. Thanks to Rolandas Naujikas
This commit is contained in:
parent
e24f645a5c
commit
165e279567
@ -143,22 +143,25 @@ define(function(require) {
|
||||
if (templateJSON["SUNSTONE_CAPACITY_SELECT"] &&
|
||||
(templateJSON["SUNSTONE_CAPACITY_SELECT"].toUpperCase() == "NO")) {
|
||||
$("#sunstone_capacity_select", context).attr("checked", "checked");
|
||||
delete templateJSON["SUNSTONE_CAPACITY_SELECT"]
|
||||
}
|
||||
|
||||
delete templateJSON["SUNSTONE_CAPACITY_SELECT"];
|
||||
|
||||
if (templateJSON["SUNSTONE_NETWORK_SELECT"] &&
|
||||
(templateJSON["SUNSTONE_NETWORK_SELECT"].toUpperCase() == "NO")) {
|
||||
$("#sunstone_network_select", context).attr("checked", "checked");
|
||||
delete templateJSON["SUNSTONE_NETWORK_SELECT"]
|
||||
}
|
||||
|
||||
delete templateJSON["SUNSTONE_NETWORK_SELECT"];
|
||||
|
||||
if (templateJSON["HYPERVISOR"] == 'vcenter' &&
|
||||
templateJSON["KEEP_DISKS_ON_DONE"] &&
|
||||
templateJSON["KEEP_DISKS_ON_DONE"].toLowerCase() == "yes" ) {
|
||||
$("#KEEP_DISKS", context).attr("checked", "checked");
|
||||
delete templateJSON["KEEP_DISKS_ON_DONE"]
|
||||
}
|
||||
|
||||
delete templateJSON["KEEP_DISKS_ON_DONE"];
|
||||
|
||||
if (templateJSON["HYPERVISOR"] == 'vcenter') {
|
||||
var publicClouds = templateJSON["PUBLIC_CLOUD"];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user