[Kimchi-devel] [PATCH V2 7/7] (WIP) Storagepool SCSI/FC: Draft UI to allow user to select a LUN to new VM

Crístian Viana vianac at linux.vnet.ibm.com
Thu Jan 30 13:50:41 UTC 2014


Am 23-01-2014 22:30, schrieb Rodrigo Trujillo:
> +        kimchi.retrieveTemplate(templateName, function(templateInfo) {
Do not forget to add the error callback function here...
> +            if (templateInfo) {
> +                var poolName = templateInfo.storagepool.substring(14);
> +                kimchi.retrieveStoragePool(poolName, function(poolInfo){
...and here.
> +                            $.each(lunsList, function(index, value) {
> +                                popUpList += '<div class=field> <input type="radio" value="' + value.name + '" name="lun">' +
> +                                             '<label>' + value.name + '</label></div>';
>
Also, assign the <label> elements to their corresponding <input>'s.




More information about the Kimchi-devel mailing list