From 89b08d5a91575994765ba0224f9b2d2b53393fd4 Mon Sep 17 00:00:00 2001
From: Mihail Maxacov <0xf013@gmail.com>
Date: Mon, 2 Feb 2015 16:46:17 +0200
Subject: [PATCH] add busy loaders
---
.../controllers/work-packages-list-controller.js | 14 +++++++++++---
frontend/public/templates/work_packages.list.html | 4 ++--
2 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/frontend/app/work_packages/controllers/work-packages-list-controller.js b/frontend/app/work_packages/controllers/work-packages-list-controller.js
index 60f949708b..f8c1ed89a2 100644
--- a/frontend/app/work_packages/controllers/work-packages-list-controller.js
+++ b/frontend/app/work_packages/controllers/work-packages-list-controller.js
@@ -208,7 +208,7 @@ module.exports = function($scope, $rootScope, $state, $location, latestTab,
clearUrlQueryParams();
// Load new query
- $state.go('work-packages.list', { query_id: queryId });
+ $scope.settingUpPage = $state.go('work-packages.list', { 'query_id': queryId });
};
function updateResults() {
@@ -262,7 +262,12 @@ module.exports = function($scope, $rootScope, $state, $location, latestTab,
});
$scope.openLatestTab = function() {
- $state.go(latestTab.getStateName(), { workPackageId: $scope.preselectedWorkPackageId, query_props: $location.search().query_props });
+ $scope.settingUpPage = $state.go(
+ latestTab.getStateName(),
+ {
+ workPackageId: $scope.preselectedWorkPackageId,
+ 'query_props': $location.search()['query_props']
+ });
};
$scope.closeDetailsView = function() {
@@ -276,7 +281,10 @@ module.exports = function($scope, $rootScope, $state, $location, latestTab,
$scope.showWorkPackageDetails = function(id, force) {
if (force || $state.current.url != "") {
- $state.go(latestTab.getStateName(), { workPackageId: id, query_props: $location.search().query_props });
+ $scope.settingUpPage = $state.go(
+ latestTab.getStateName(),
+ { workPackageId: id, 'query_props': $location.search()['query_props'] }
+ );
}
};
};
diff --git a/frontend/public/templates/work_packages.list.html b/frontend/public/templates/work_packages.list.html
index c395e80be4..64aaca292f 100644
--- a/frontend/public/templates/work_packages.list.html
+++ b/frontend/public/templates/work_packages.list.html
@@ -85,8 +85,8 @@