From 70f74eeb2a8239cc7410b9b2d8f76785b02fccee Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Wed, 8 Oct 2014 15:02:01 -0700 Subject: [PATCH] CLOUDSTACK-7661: UI > VM Wizard > Keyboard Language > send new parameter keyboard to deployVirtualMachine API call. (cherry picked from commit d3af2de73041f81acfdf1b2f95a3d81727389c14) --- ui/scripts/instanceWizard.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ui/scripts/instanceWizard.js b/ui/scripts/instanceWizard.js index 2a79ef06bec..3a588e751c2 100644 --- a/ui/scripts/instanceWizard.js +++ b/ui/scripts/instanceWizard.js @@ -940,7 +940,14 @@ group : group }); } - + + var keyboard = args.data.keyboardLanguage; + if (keyboard != null && keyboard.length > 0) { //when blank option (default option) is selected => args.data.keyboardLanguage == "" + $.extend(deployVmData, { + keyboard : keyboard + }); + } + $(window).trigger('cloudStack.deployVirtualMachine', { deployVmData: deployVmData, formData: args.data