mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 11:50:42 -03:30
Found the real source of the js error. There was a callback naming conflict with ProjectList controller. Both were using 'choicesReady'.
This commit is contained in:
parent
0af2980d10
commit
f473d51ef3
@ -892,7 +892,7 @@ angular.module('GroupsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', '
|
||||
if (scope.removeChoicesComplete) {
|
||||
scope.removeChoicesComplete();
|
||||
}
|
||||
scope.removeChoicesComplete = scope.$on('choicesReady', function() {
|
||||
scope.removeChoicesComplete = scope.$on('choicesComplete', function() {
|
||||
|
||||
generator.inject(form, { mode: 'edit', modal: false, related: false, id: 'tree-form',
|
||||
breadCrumbs: false, scope: scope });
|
||||
@ -932,7 +932,7 @@ angular.module('GroupsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', '
|
||||
scope.removeChoicesReady = scope.$on('choicesReady', function() {
|
||||
choicesReady++;
|
||||
if (choicesReady == 2) {
|
||||
scope.$emit('choicesReady');
|
||||
scope.$emit('choicesComplete');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user