- Javascript code was not getting the right NIC value from the form,
this commit fixes that issue.
Signed-off-by: Jose Ricardo Ziviani <joserz(a)linux.vnet.ibm.com>
---
ui/js/src/kimchi.network_add_main.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ui/js/src/kimchi.network_add_main.js b/ui/js/src/kimchi.network_add_main.js
index 5a7133e..ea69421 100644
--- a/ui/js/src/kimchi.network_add_main.js
+++ b/ui/js/src/kimchi.network_add_main.js
@@ -135,7 +135,7 @@ kimchi.getNetworkDialogValues = function() {
type : $("#networkType").val()
};
if (network.type === kimchi.NETWORK_TYPE_BRIDGE) {
- network.interface = $("#networkDestinationLabel").text();
+ network.interface = $("#networkDestinationID").val();
network.vlan_id = parseInt($("#networkVlanID").val());
}
return network;
@@ -163,4 +163,4 @@ kimchi.updateNetworkFormButton = function() {
}else{
$("#networkFormOk").button("enable");
}
-};
\ No newline at end of file
+};
--
1.9.1