From 7a3c2304a08fd78ba2a1784b814983dca04f7eb9 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Tue, 20 Jan 2015 14:00:23 -0800 Subject: [PATCH] volume-upload: UI > templates > upload template from local > pass ispublic, requireshvm, isfeatured, isrouting parameter to getUploadParamsForTemplate API if corresponding fields are not hidden. --- ui/scripts/templates.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/ui/scripts/templates.js b/ui/scripts/templates.js index 16d057d0a89..4c6c8f5a4f9 100644 --- a/ui/scripts/templates.js +++ b/ui/scripts/templates.js @@ -606,11 +606,7 @@ osTypeId: args.data.osTypeId, hypervisor: args.data.hypervisor }; - - - debugger; - //Brian, please extend args to include $form - /* + if (args.$form.find('.form-item[rel=isPublic]').css("display") != "none") { $.extend(data, { ispublic: (args.data.isPublic == "on") @@ -634,8 +630,7 @@ isrouting: (args.data.isrouting === 'on') }); } - */ - + $.ajax({ url: createURL('getUploadParamsForTemplate'), data: data,