cloudStack 3.0 new UI - pass timezone parameter to createAccount API if timezone is selected.

This commit is contained in:
Jessica Wang 2011-11-04 13:30:32 -07:00
parent c87278e46c
commit 2c06fac94b
1 changed files with 4 additions and 7 deletions

View File

@ -132,13 +132,10 @@
if (args.data.accounttype == "1" && parseInt(args.data.domainid) != rootDomainId) //if account type is admin, but domain is not Root domain
accountType = "2"; // Change accounttype from root-domain("1") to domain-admin("2")
array1.push("&accounttype=" + accountType);
/*
var timezone = $thisDialog.find("#add_user_timezone").val();
if(timezone != null && timezone.length > 0)
array1.push("&timezone=" + todb(timezone));
*/
if(args.data.timezone != null && args.data.timezone.length > 0)
array1.push("&timezone=" + args.data.timezone);
$.ajax({
url: createURL("createAccount" + array1.join("")),
dataType: "json",