volume-upload: UI > templates > upload template from local > pass ispublic, requireshvm, isfeatured, isrouting parameter to getUploadParamsForTemplate API if corresponding fields are not hidden.

This commit is contained in:
Jessica Wang 2015-01-20 14:00:23 -08:00
parent e92e46aba5
commit 7a3c2304a0
1 changed files with 2 additions and 7 deletions

View File

@ -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,