mirror of
https://github.com/ansible/awx.git
synced 2026-04-09 20:19:21 -02: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:
@@ -892,7 +892,7 @@ angular.module('GroupsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', '
|
|||||||
if (scope.removeChoicesComplete) {
|
if (scope.removeChoicesComplete) {
|
||||||
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',
|
generator.inject(form, { mode: 'edit', modal: false, related: false, id: 'tree-form',
|
||||||
breadCrumbs: false, scope: scope });
|
breadCrumbs: false, scope: scope });
|
||||||
@@ -932,7 +932,7 @@ angular.module('GroupsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', '
|
|||||||
scope.removeChoicesReady = scope.$on('choicesReady', function() {
|
scope.removeChoicesReady = scope.$on('choicesReady', function() {
|
||||||
choicesReady++;
|
choicesReady++;
|
||||||
if (choicesReady == 2) {
|
if (choicesReady == 2) {
|
||||||
scope.$emit('choicesReady');
|
scope.$emit('choicesComplete');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user