bug 8210: IP Address page - Port Range tab - the embedded object returned by createIpForwardingRule API should be named as "ipforwardingrule" instead of "portforwardingrule".

This commit is contained in:
Jessica Wang 2011-01-26 15:42:45 -08:00
parent 529e48d5eb
commit f1fc1a269e
2 changed files with 6 additions and 6 deletions

View File

@ -288,7 +288,7 @@
</div>
<div class="grid_rows even" id="create_port_forwarding_row">
<div class="grid_row_cell" style="width: 15%;">
<input id="end_port" class="text" style="width: 70%;" type="text" />
<input id="public_port" class="text" style="width: 70%;" type="text" />
<div id="public_port_errormsg" class="errormsg" style="display: none;">Error msg will appear here</div>
</div>
<div class="grid_row_cell" style="width: 15%;">

View File

@ -141,9 +141,9 @@ function afterLoadIpJSP() {
var protocol = $createPortRangeRow.find("#protocol").val();
var array1 = [];
array1.push("&ipaddress="+ipAddress);
array1.push("&endPort="+endPort);
array1.push("&ipaddress="+ipAddress);
array1.push("&startPort="+startPort);
array1.push("&endPort="+endPort);
array1.push("&protocol="+protocol);
$.ajax({
@ -167,7 +167,7 @@ function afterLoadIpJSP() {
$("body").stopTime(timerKey);
$spinningWheel.hide();
if (result.jobstatus == 1) { // Succeeded
var item = json.queryasyncjobresultresponse.jobresult.portforwardingrule;
var item = json.queryasyncjobresultresponse.jobresult.ipforwardingrule;
portRangeJsonToTemplate(item, $template);
$spinningWheel.hide();
refreshCreatePortRangeRow();
@ -238,9 +238,9 @@ function afterLoadIpJSP() {
var virtualMachineId = $createPortForwardingRow.find("#vm").val();
var array1 = [];
array1.push("&ipaddress="+ipAddress);
array1.push("&privateport="+privatePort);
array1.push("&ipaddress="+ipAddress);
array1.push("&publicport="+publicPort);
array1.push("&privateport="+privatePort);
array1.push("&protocol="+protocol);
array1.push("&virtualmachineid=" + virtualMachineId);