[Kimchi-devel] [PATCH 2/4] Download Remote Image UI: Add Corresponding Window

Hongliang Wang hlwang at linux.vnet.ibm.com
Fri Sep 12 02:18:13 UTC 2014


On 09/11/2014 10:00 PM, Crístian Viana wrote:
> On 10-09-2014 09:02, Hongliang Wang wrote:
>> +    var fetchRemoteFile = function() {
>> +        var volumeURL = $('#volume-remote-url').val();
>> +        var volumeName = volumeURL.split(/(\\|\/)/g).pop();
>> +        kimchi.downloadVolumeToSP({
>> +            sp: kimchi.selectedSP,
>> +            name: volumeName,
>> +            url: volumeURL
>
> If you want to, you may omit the parameter 'name' when sending the 
> POST request to create a storage volume because the backend uses a 
> default value (the string after the last '/') when that parameter is 
> not found.
OK. Cool!




More information about the Kimchi-devel mailing list