Team add/edit now working. Temporarily disabled organization name lookup on Team and Inventory lists. This will get fixed with AC-93 -add summary fields to response.

This commit is contained in:
chouseknecht
2013-05-08 16:26:21 -04:00
parent e5057fbd83
commit 51ef375183
7 changed files with 17 additions and 27 deletions

View File

@@ -32,18 +32,8 @@ angular.module('RefreshHelper', ['RestServices', 'Utilities'])
scope[iterator + 'PrevUrl'] = data.previous;
scope[iterator + 'Count'] = data.count;
scope[iterator + 'PageCount'] = Math.ceil((data.count / scope[iterator + 'PageSize']));
if (set == 'inventories') {
lookup_results = [];
scope.$emit('refreshFinished', data['results']);
}
else if (set == 'teams') {
lookup_results = [];
scope.$emit('TeamRefreshFinished', data['results']);
}
else {
scope[iterator + 'SearchSpin'] = false;
scope[set] = data['results'];
}
scope[iterator + 'SearchSpin'] = false;
scope[set] = data['results'];
})
.error ( function(data, status, headers, config) {
scope[iterator + 'SearchSpin'] = true;