diff --git a/src/sunstone/public/app/tabs/images-tab/form-panels/create-common.js b/src/sunstone/public/app/tabs/images-tab/form-panels/create-common.js index 3e481d2297..a78e8e284a 100644 --- a/src/sunstone/public/app/tabs/images-tab/form-panels/create-common.js +++ b/src/sunstone/public/app/tabs/images-tab/form-panels/create-common.js @@ -252,6 +252,14 @@ define(function(require) { } }); + $("#img_type", context).change(function() { + var value = $(this).val(); + if(value == "CDROM") + $('#img_persistent', context).closest('.row').hide(); + else + $('#img_persistent', context).closest('.row').show(); + }); + $('#path_image', context).click(); CustomTagsTable.setup(context);