From ea196a4ffcf9de33f8486dfbddc08e0040b8bb2c Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Fri, 6 Jun 2014 13:26:53 -0700 Subject: [PATCH] CLOUDSTACK-6858: UI - remove obsolete variable rootAccountId whose value is no longer 1. --- ui/scripts/sharedFunctions.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ui/scripts/sharedFunctions.js b/ui/scripts/sharedFunctions.js index bec03360c31..445351afa93 100644 --- a/ui/scripts/sharedFunctions.js +++ b/ui/scripts/sharedFunctions.js @@ -51,8 +51,6 @@ var pageSize = 20; var drModuleIncluded = false; -var rootAccountId = 1; - //async action var pollAsyncJobResult = function(args) { $.ajax({ @@ -1183,10 +1181,7 @@ var addExtraPropertiesToGuestNetworkObject = function(jsonObj) { jsonObj.networkofferingidText = jsonObj.networkofferingid; if (jsonObj.acltype == "Domain") { - if (jsonObj.domainid == rootAccountId) - jsonObj.scope = "All"; - else - jsonObj.scope = "Domain (" + jsonObj.domain + ")"; + jsonObj.scope = "Domain (" + jsonObj.domain + ")"; } else if (jsonObj.acltype == "Account") { if (jsonObj.project != null) jsonObj.scope = "Account (" + jsonObj.domain + ", " + jsonObj.project + ")";