1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 15:21:13 +03:00

Fixed organization lookup on Inventory Edit section of Inventory detail page.

This commit is contained in:
chouseknecht 2013-06-04 19:19:44 -04:00
parent 2accb94972
commit 6dba6bbdb9

View File

@ -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') {