[Kimchi-devel] [V1 1/2] Fibre Channel SCSI Storage Pool UI
Crístian Viana
vianac at linux.vnet.ibm.com
Fri Feb 14 14:04:02 UTC 2014
Am 14-02-2014 10:00, schrieb huoyuxin at 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".
More information about the Kimchi-devel
mailing list