new UI - ip address page - fix a bug that newly created port forwarding rule appear on every IP.

This commit is contained in:
Jessica Wang 2010-10-07 11:56:29 -07:00
parent 6949971391
commit d0cfc6a7d2
1 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ function afterLoadIpJSP() {
if (!isValid) return;
var $template = $("#port_forwarding_template").clone();
$("#tab_content_port_forwarding #grid_container").append($template.show());
$("#tab_content_port_forwarding #grid_container #grid_content").append($template.show());
var $spinningWheel = $template.find("#row_container").find("#spinning_wheel");
$spinningWheel.find("#description").text("Adding....");
@ -376,7 +376,7 @@ function portForwardingJsonToTemplate(jsonObj, $template) {
var IpAccount = ipObj.account;
$.ajax({
data: createURL("command=listVirtualMachines&domainid="+IpDomainid+"&account="+IpAccount+maxPageSize),
data: createURL("command=listVirtualMachines&domainid="+IpDomainid+"&account="+IpAccount+maxPageSize),
dataType: "json",
success: function(json) {
var instances = json.listvirtualmachinesresponse.virtualmachine;