From 90bd504f1c4d77eea575bb67481412a9edbce1f3 Mon Sep 17 00:00:00 2001 From: Richard Date: Mon, 31 Mar 2014 16:33:38 +0200 Subject: [PATCH] Task 5437 - Showing 'loading' on initial table load. --- .../angular/controllers/work-packages-controller.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/angular/controllers/work-packages-controller.js b/app/assets/javascripts/angular/controllers/work-packages-controller.js index 65cfd00833..c444cdbe76 100644 --- a/app/assets/javascripts/angular/controllers/work-packages-controller.js +++ b/app/assets/javascripts/angular/controllers/work-packages-controller.js @@ -17,7 +17,10 @@ angular.module('openproject.workPackages.controllers') $scope.loading = false; $scope.disableFilters = false; - WorkPackageService.getWorkPackagesByQueryId($scope.projectIdentifier, $scope.query_id) + // $scope.withLoading(WorkPackageService.getWorkPackagesByQueryId, [$scope.projectIdentifier, $scope.query_id]) + // .then($scope.withLoading($scope.setupWorkPackagesTable)) + // .then($scope.withLoading(initAvailableColumns)) + $scope.withLoading(WorkPackageService.getWorkPackagesByQueryId, [$scope.projectIdentifier, $scope.query_id]) .then($scope.setupWorkPackagesTable) .then(initAvailableColumns); };