From 6dba6bbdb91758dbe54cff7b0670b8e7784bbd0a Mon Sep 17 00:00:00 2001 From: chouseknecht Date: Tue, 4 Jun 2013 19:19:44 -0400 Subject: [PATCH] Fixed organization lookup on Inventory Edit section of Inventory detail page. --- ansibleworks/ui/static/js/controllers/Inventories.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ansibleworks/ui/static/js/controllers/Inventories.js b/ansibleworks/ui/static/js/controllers/Inventories.js index d81822a020..9f758dbec9 100644 --- a/ansibleworks/ui/static/js/controllers/Inventories.js +++ b/ansibleworks/ui/static/js/controllers/Inventories.js @@ -230,6 +230,13 @@ function InventoriesEdit ($scope, $rootScope, $compile, $location, $log, $routeP scope.createButtonShow = false; scope.search(scope.relatedSets['hosts'].iterator); TreeInit(scope.TreeParams); + LookUpInit({ + scope: scope, + form: form, + current_item: (scope.organization) ? scope.organization : null, + list: OrganizationList, + field: 'organization' + }); }); LoadInventory({ scope: scope }); @@ -302,7 +309,7 @@ function InventoriesEdit ($scope, $rootScope, $compile, $location, $log, $routeP }); }; - + scope.treeController = function($node) { var nodeType = $($node).attr('type'); if (nodeType == 'inventory') {