From f8e96474beb6366d20bf65e135fb6bd944a68636 Mon Sep 17 00:00:00 2001 From: Hector Sanjuan Date: Thu, 13 Sep 2012 13:15:50 +0200 Subject: [PATCH] Select PATH radio input and set image type to OS when importing an image from Marketplace (cherry picked from commit 4ddf3299e4f0ac268e8919dda135f15397812f68) --- src/sunstone/public/js/plugins/marketplace-tab.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sunstone/public/js/plugins/marketplace-tab.js b/src/sunstone/public/js/plugins/marketplace-tab.js index 1a5fd382c8..a8bb9dfb2c 100644 --- a/src/sunstone/public/js/plugins/marketplace-tab.js +++ b/src/sunstone/public/js/plugins/marketplace-tab.js @@ -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();