mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
bug 7641: resource page - Add Pod dialog, Add Host dialog - zone dropdown field might be empty (e.g. before first zone is created). Skip API call if zone field is empty.
This commit is contained in:
parent
fe6824a66b
commit
9fd24869fa
@ -324,6 +324,8 @@ function initAddPodShortcut() {
|
||||
|
||||
$zoneDropdown.bind("change", function(event) {
|
||||
var zoneId = $(this).val();
|
||||
if(zoneId == null)
|
||||
return;
|
||||
$.ajax({
|
||||
data: createURL("command=listZones&id="+zoneId),
|
||||
dataType: "json",
|
||||
@ -484,6 +486,8 @@ function initAddHostShortcut() {
|
||||
|
||||
$dialogAddHost.find("#zone_dropdown").bind("change", function(event) {
|
||||
var zoneId = $(this).val();
|
||||
if(zoneId == null)
|
||||
return;
|
||||
$.ajax({
|
||||
data: createURL("command=listPods&zoneId="+zoneId),
|
||||
dataType: "json",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user