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:
Chris Houseknecht 2013-11-21 17:41:35 +00:00
parent 0af2980d10
commit f473d51ef3

View File

@ -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');
}
});