From 4d871b2a1053bef9ef6c32735de3adeb6b4ec1da Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Tue, 7 Jun 2011 17:44:12 -0700 Subject: [PATCH] bug 7194: cloudStack UI - IP Address page - create port forwarding rule - since private port and private end port might be different from public port and public end port, remove functionality "If public end port gets filled, disable private ports and copy public ports over to private ports." --- ui/scripts/cloud.core.ipaddress.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/scripts/cloud.core.ipaddress.js b/ui/scripts/cloud.core.ipaddress.js index 5f656b0773a..c10512ed92c 100644 --- a/ui/scripts/cloud.core.ipaddress.js +++ b/ui/scripts/cloud.core.ipaddress.js @@ -257,6 +257,7 @@ function afterLoadIpJSP() { var $createPortForwardingRow = $("#tab_content_port_forwarding").find("#create_port_forwarding_row"); // If public end port gets filled, disable private ports and copy public ports over to private ports + /* $createPortForwardingRow.find("#public_end_port").bind("keyup", function(event) { if($(this).val() != null && $(this).val().length > 0) { $createPortForwardingRow.find("#private_port").attr("readonly", true); @@ -276,7 +277,8 @@ function afterLoadIpJSP() { $createPortForwardingRow.find("#private_port").val($(this).val()); return true; }); - + */ + $createPortForwardingRow.find("#add_link").bind("click", function(event){ var isValid = true; isValid &= validateDropDownBox("Instance", $createPortForwardingRow.find("#vm"), $createPortForwardingRow.find("#vm_errormsg"));