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:
parent
0d7f0a32ba
commit
2999576f75
@ -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();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -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">'+
|
||||
|
Loading…
x
Reference in New Issue
Block a user