1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-27 03:21:29 +03:00

Bug #4050: Fix checkbox inputs when values are set manually. Thanks to Rolandas Naujikas

(cherry picked from commit 165e279567)
This commit is contained in:
Carlos Martín 2015-10-19 12:45:13 +02:00
parent ade6d0c0a2
commit 8f327c76b4

View File

@ -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"];