From ddff4af949fb5d2cb58437c8f6b9f89058a8d096 Mon Sep 17 00:00:00 2001 From: Hector Sanjuan Date: Wed, 2 Nov 2011 23:07:57 +0100 Subject: [PATCH] Feature #898: Add driver attribute to image wizard (cherry picked from commit b3ea3bee5133773a4aa7cd78570674098f166ec8) --- src/sunstone/public/js/plugins/images-tab.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/sunstone/public/js/plugins/images-tab.js b/src/sunstone/public/js/plugins/images-tab.js index 78a23a84f1..8f5f7c57d8 100644 --- a/src/sunstone/public/js/plugins/images-tab.js +++ b/src/sunstone/public/js/plugins/images-tab.js @@ -95,6 +95,11 @@ var create_image_tmpl = \
Type of disk device to emulate.
\ \ +
\ + \ + \ +
Specific image mapping driver. KVM: raw, qcow2 and Xen:tap:aio:, file:
\ +
\ \
\
\ @@ -783,6 +788,10 @@ function setupCreateImageDialog(){ var bus = $('#img_bus',this).val(); img_json["BUS"] = bus; + var driver = $('#img_driver',this).val(); + if (driver.length) + img_json["DRIVER"] = driver; + switch ($('#src_path_select input:checked',this).val()){ case "path": path = $('#img_path',this).val();