mirror of https://github.com/apache/cloudstack.git
bug 9795: Copy Template Dialog, Copy ISO Dialog - fix a bug that entries in zone dropdown are duplicated when the dialog pops up the 2nd time.
This commit is contained in:
parent
8901d0e73c
commit
2e645d18cf
|
|
@ -109,7 +109,8 @@ function initAddIsoDialog() {
|
|||
$.ajax({
|
||||
data: createURL("command=listZones&available=true"),
|
||||
dataType: "json",
|
||||
success: function(json) {
|
||||
success: function(json) {
|
||||
g_zoneIds = [];
|
||||
var zones = json.listzonesresponse.zone;
|
||||
if (zones != null && zones.length > 0) {
|
||||
for (var i = 0; i < zones.length; i++) {
|
||||
|
|
|
|||
|
|
@ -217,7 +217,8 @@ function afterLoadTemplateJSP() {
|
|||
$.ajax({
|
||||
data: createURL("command=listZones&available=true"),
|
||||
dataType: "json",
|
||||
success: function(json) {
|
||||
success: function(json) {
|
||||
g_zoneIds = [];
|
||||
var zones = json.listzonesresponse.zone;
|
||||
if (zones != null && zones.length > 0) {
|
||||
for (var i = 0; i < zones.length; i++) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue