Refresh button on jobs and projects tab now responds with a spinner. Before nothing happened and you were not really sure if the data actually refreshed. This is a result of removing the little spinner in the fitler widget.

This commit is contained in:
Chris Houseknecht 2013-11-20 16:43:09 +00:00
parent aef534f080
commit 2f90ce511f
2 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@
function JobsListCtrl ($scope, $rootScope, $location, $log, $routeParams, Rest, Alert, JobList,
GenerateList, LoadBreadCrumbs, Prompt, SearchInit, PaginateInit, ReturnToCaller,
ClearScope, ProcessErrors, GetBasePath, LookUpInit, SubmitJob, FormatDate, Refresh,
JobStatusToolTip, Empty)
JobStatusToolTip, Empty, Wait)
{
ClearScope('htmlTemplate');
var list = JobList;
@ -88,7 +88,7 @@ function JobsListCtrl ($scope, $rootScope, $location, $log, $routeParams, Rest,
LoadBreadCrumbs();
scope.refresh = function() {
scope['jobSearchSpin'] = true;
Wait('start');
scope['jobLoading'] = false;
Refresh({ scope: scope, set: 'jobs', iterator: 'job', url: scope['current_url'] });
}
@ -175,7 +175,7 @@ function JobsListCtrl ($scope, $rootScope, $location, $log, $routeParams, Rest,
JobsListCtrl.$inject = [ '$scope', '$rootScope', '$location', '$log', '$routeParams', 'Rest', 'Alert', 'JobList',
'GenerateList', 'LoadBreadCrumbs', 'Prompt', 'SearchInit', 'PaginateInit', 'ReturnToCaller', 'ClearScope',
'ProcessErrors','GetBasePath', 'LookUpInit', 'SubmitJob', 'FormatDate', 'Refresh', 'JobStatusToolTip',
'Empty'
'Empty', 'Wait'
];

View File

@ -208,7 +208,7 @@ function ProjectsList ($scope, $rootScope, $location, $log, $routeParams, Rest,
}
scope.refresh = function() {
scope['projectSearchSpin'] = true;
Wait('start');
scope['projectLoading'] = false;
Refresh({ scope: scope, set: 'projects', iterator: 'project', url: scope['current_url'] });
}