1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-30 22:50:10 +03:00

Bug : Make vnet table selection mandatory

This commit is contained in:
Carlos Martín 2015-02-19 12:35:50 +01:00
parent 5a17329019
commit 6240380f97

@ -45,6 +45,7 @@ function initialize_create_security_group_dialog(dialog){
dialog.on("change", '.security_group_rule_network_sel', function(){
$('.security_group_rule_network',dialog).hide();
$('div.security_group_rule_network input',dialog).removeAttr('required');
$("input#selected_resource_id_"+"new_sg_rule", dialog).removeAttr("required");
$('.vnet_select',dialog).hide();
@ -57,6 +58,7 @@ function initialize_create_security_group_dialog(dialog){
break;
case "VNET":
$('.vnet_select',dialog).show();
$("input#selected_resource_id_"+"new_sg_rule", dialog).attr("required", "");
refreshVNetTableSelect(dialog, "new_sg_rule");