From 2c06fac94bca4915f5b74211354f92b533ac04c3 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Fri, 4 Nov 2011 13:30:32 -0700 Subject: [PATCH] cloudStack 3.0 new UI - pass timezone parameter to createAccount API if timezone is selected. --- ui/scripts/accounts.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/ui/scripts/accounts.js b/ui/scripts/accounts.js index 4a641f13f5e..45485702648 100644 --- a/ui/scripts/accounts.js +++ b/ui/scripts/accounts.js @@ -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",