bug 10433: fix a bug that was caused by global zone name cache.

This commit is contained in:
Jessica Wang 2011-06-27 14:29:05 -07:00
parent 468136be74
commit 615af2971e
2 changed files with 4 additions and 2 deletions

View File

@ -110,7 +110,8 @@ function initAddIsoDialog() {
data: createURL("command=listZones&available=true"),
dataType: "json",
success: function(json) {
g_zoneIds = [];
g_zoneIds = [];
g_zoneNames = [];
var zones = json.listzonesresponse.zone;
if (zones != null && zones.length > 0) {
for (var i = 0; i < zones.length; i++) {

View File

@ -218,7 +218,8 @@ function afterLoadTemplateJSP() {
data: createURL("command=listZones&available=true"),
dataType: "json",
success: function(json) {
g_zoneIds = [];
g_zoneIds = [];
g_zoneNames = [];
var zones = json.listzonesresponse.zone;
if (zones != null && zones.length > 0) {
for (var i = 0; i < zones.length; i++) {