mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
feature #3162: Add update hybrid section
This commit is contained in:
parent
c25481ba08
commit
85443e0c1e
@ -4411,6 +4411,49 @@ var fillTemplatePopUp = function(template, dialog){
|
||||
delete template.NIC_DEFAULT;
|
||||
}
|
||||
|
||||
//
|
||||
// HYBRID
|
||||
//
|
||||
|
||||
function fillProviderTab(provider, provider_type){
|
||||
$("#tf_btn_hybrid").trigger("click");
|
||||
var context = $(".provider", dialog).last();
|
||||
|
||||
$("input.hybridRadio[value='"+provider_type+"']", context).trigger("click");
|
||||
|
||||
autoFillInputs(provider, context);
|
||||
}
|
||||
|
||||
if (template.PUBLIC_CLOUD) {
|
||||
var providers = template.PUBLIC_CLOUD
|
||||
|
||||
if (providers instanceof Array) {
|
||||
$.each(providers, function(){
|
||||
fillProviderTab(this, this.TYPE.toLowerCase());
|
||||
});
|
||||
}
|
||||
else if (providers instanceof Object) {
|
||||
fillProviderTab(providers, this.TYPE.toLowerCase());
|
||||
}
|
||||
|
||||
delete template.PUBLIC_CLOUD
|
||||
}
|
||||
|
||||
if (template.EC2) {
|
||||
var providers = template.EC2
|
||||
|
||||
if (providers instanceof Array) {
|
||||
$.each(providers, function(){
|
||||
fillProviderTab(this, "ec2");
|
||||
});
|
||||
}
|
||||
else if (providers instanceof Object) {
|
||||
fillProviderTab(providers, "ec2");
|
||||
}
|
||||
|
||||
delete template.EC2
|
||||
}
|
||||
|
||||
//
|
||||
// OS
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user