1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-03 13:47:01 +03:00

Bug #3177: Fix oneflow-template tab to allow vnet names with spaces

This commit is contained in:
Carlos Martín 2014-10-21 16:47:19 +02:00
parent 0d7f0a32ba
commit 2999576f75
2 changed files with 3 additions and 3 deletions

View File

@ -1265,7 +1265,7 @@ function initialize_create_service_template_dialog(dialog){
$(".vm_template_contents", role_section).val("");
$.each(selected_networks, function(){
$(".service_network_checkbox[value="+this+"]", role_section).attr('checked', true).change();
$(".service_network_checkbox[value='"+this+"']", role_section).attr('checked', true).change();
});
});
}
@ -1621,7 +1621,7 @@ function fillUpUpdateServiceTemplateDialog(response, dialog){
var reg = new RegExp("\\$"+$(this).val()+"\\b");
if(reg.exec(value.vm_template_contents) != null){
$(".service_network_checkbox[value="+$(this).val()+"]", context).attr('checked', true).change();
$(".service_network_checkbox[value='"+$(this).val()+"']", context).attr('checked', true).change();
}
}
});

View File

@ -6120,7 +6120,7 @@ function generateInstantiateUserInputs(div, user_inputs, opts) {
var separator = "";
$.each(network_attrs, function(index, vnet_attr){
var unique_id = "user_input_"+vnet_attr.name;
var unique_id = "user_input_"+( vnet_attr.name.replace(/ /g, "_") );
$(".instantiate_user_inputs", div).append(
'<div class="row">'+