
Am 14-02-2014 10:00, schrieb huoyuxin@linux.vnet.ibm.com:
+ kimchi.getHostPCIDevices(function(data){ + if(data.length>0){ + options.push({ + label : i18n.KCHSP6001M, + value : "scsi" + }); + for(var i=0;i<data.length;i++){ + data[i].label = data[i].name; + data[i].value = data[i].name; + } + $('#scsiAdapter').selectMenu(); + $("input", "#scsiAdapter").val(data[0].name); + $('#scsiAdapter').selectMenu("setData", data); + } + $('#poolTypeId').selectMenu("setData", options); + }); Please add an error handler to the function "getHostPCIDevices".