1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

Select PATH radio input and set image type to OS when importing an image from Marketplace

(cherry picked from commit 4ddf3299e4f0ac268e8919dda135f15397812f68)
This commit is contained in:
Hector Sanjuan 2012-09-13 13:15:50 +02:00 committed by Ruben S. Montero
parent f44f143386
commit f8e96474be

View File

@ -44,6 +44,9 @@ var market_actions = {
callback: function(request,response){
$('#img_name', $create_image_dialog).val(response['name']);
$('#img_path', $create_image_dialog).val(response['links']['download']['href']);
$('#src_path_select input[value="path"]', $create_image_dialog).trigger('click');
$('select#img_type', $create_image_dialog).val('OS');
$('select#img_type', $create_image_dialog).trigger('change');
//remove any options from the custom vars dialog box
$("#custom_var_image_box",$create_image_dialog).empty();