AC-941 don't display UI form fields until API data loads. Also fixed related set pagination issue.

This commit is contained in:
Chris Houseknecht
2014-01-28 13:57:37 -05:00
parent de970058f7
commit 77b285f632
5 changed files with 97 additions and 84 deletions

View File

@@ -52,8 +52,8 @@ angular.module('PaginationHelpers', ['Utilities', 'RefreshHelper', 'RefreshRelat
}
}])
.factory('RelatedPaginateInit', [ 'RefreshRelated', '$cookieStore',
function(RefreshRelated, $cookieStore) {
.factory('RelatedPaginateInit', [ 'RefreshRelated', '$cookieStore', 'Wait',
function(RefreshRelated, $cookieStore, Wait) {
return function(params) {
var scope = params.scope;
@@ -80,7 +80,7 @@ angular.module('PaginationHelpers', ['Utilities', 'RefreshHelper', 'RefreshRelat
new_url += (scope[iterator + 'SearchParams']) ? '&' + scope[iterator + 'SearchParams'] +
'&page_size=' + scope[iterator + '_page_size' ] : 'page_size=' + scope[iterator + 'PageSize' ];
Wait('start');
RefreshRefresh({ scope: scope, set: set, iterator: iterator, url: new_url });
RefreshRelated({ scope: scope, set: set, iterator: iterator, url: new_url });
}
scope.pageIsActive = function(page, iterator) {