From 4e17c23f80767df21cd1a9afca24049b2274db4b Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Wed, 14 Sep 2011 11:44:12 -0700 Subject: [PATCH] bug 11433: cloudStack - Acquire IP Address dialog - get element ID by a different way. --- ui/scripts/cloud.core.ipaddress.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/scripts/cloud.core.ipaddress.js b/ui/scripts/cloud.core.ipaddress.js index 9f6497da55a..83f5ec4fc8c 100644 --- a/ui/scripts/cloud.core.ipaddress.js +++ b/ui/scripts/cloud.core.ipaddress.js @@ -88,7 +88,7 @@ function afterLoadIpJSP() { dataType: "json", success: function(json) { var zones = json.listzonesresponse.zone; - var zoneSelect = $("#dialog_add_load_balancer_and_ip #acquire_zone").empty(); + var zoneSelect = $("#dialog_add_load_balancer_and_ip").find("#acquire_zone").empty(); if (zones != null && zones.length > 0) { for (var i = 0; i < zones.length; i++) { if(zones[i].networktype == "Basic") @@ -234,7 +234,7 @@ function afterLoadIpJSP() { dataType: "json", success: function(json) { var zones = json.listzonesresponse.zone; - var zoneSelect = $("#dialog_acquire_public_ip #acquire_zone").empty(); + var zoneSelect = $("#dialog_acquire_public_ip").find("#acquire_zone").empty(); if (zones != null && zones.length > 0) { for (var i = 0; i < zones.length; i++) { zoneSelect.append("");