diff --git a/app/scripts/controllers/list.js b/app/scripts/controllers/list.js index fea14d7..99be69f 100644 --- a/app/scripts/controllers/list.js +++ b/app/scripts/controllers/list.js @@ -63,7 +63,7 @@ } if (invokeMethod) { - invokeMethod({ + return invokeMethod({ params: params, callback: function (result) { if (result && result.length > 0) { @@ -80,7 +80,7 @@ } }; - refreshDownloadTask(); + $scope.loadPromise = refreshDownloadTask(); angular.element($window).bind('resize', function () { $scope.titleWidth = getTitleWidth();