Sha256: ee6b1f77c171f466cee9af86745e39b4bcce40e59a6dce7557168aab2694bb24
Contents?: true
Size: 1.26 KB
Versions: 9
Compression:
Stored size: 1.26 KB
Contents
function xenPopulateNetworks(network_list){ $('#host_compute_attributes_VIFs_print').children().remove(); for (var i = 0; i < network_list.length; i++) { network = network_list[i]; $('#host_compute_attributes_VIFs_print').append('<option id=' + network['name'] + '>' + network['name'] + '</option>'); } } function xenPopulateStoragePools(results){ $('#host_compute_attributes_VBDs_sr_uuid').children().remove(); for (var i = 0; i < results.length; i++) { result = results[i]; $('#host_compute_attributes_VBDs_sr_uuid').append('<option id=' + result['uuid'] + '>' + result['name'] + '</option>'); } } function xenPopulateCustomTemplates(custom_templates){ xenPopulateTemplates(custom_templates, '#host_compute_attributes_custom_template_name'); } function xenPopulateBuiltinTemplates(builtin_templates){ xenPopulateTemplates(builtin_templates, '#host_compute_attributes_builtin_template_name'); } function xenPopulateTemplates(results, selector){ $(selector).children().remove(); $(selector).append('<option>No template</option>'); for (var i = 0; i < results.length; i++) { result = results[i]; $(selector).append('<option id=' + result['name'] + '>' + result['name'] + '</option>'); } }
Version data entries
9 entries across 9 versions & 1 rubygems