mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
bug 8318: Resource page - Add Cluster dialog - empty hypervisor dropdown before populating it.
This commit is contained in:
parent
6277ad4ad4
commit
47d6614cfb
@ -626,7 +626,7 @@ function initAddClusterShortcut() {
|
||||
dataType: "json",
|
||||
success: function(json) {
|
||||
var items = json.listhypervisorsresponse.hypervisor;
|
||||
var $hypervisorDropdown = $dialogAddCluster.find("#cluster_hypervisor");
|
||||
var $hypervisorDropdown = $dialogAddCluster.find("#cluster_hypervisor").empty();
|
||||
if(items != null && items.length > 0) {
|
||||
for(var i=0; i<items.length; i++) {
|
||||
$hypervisorDropdown.append("<option value='"+fromdb(items[i].name)+"'>"+fromdb(items[i].name)+"</option>");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user