From 347be6695d82505bd6a9847b5dc82c5368599517 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Tue, 17 May 2016 23:32:36 +0800 Subject: [PATCH] add loading tips --- app/scripts/controllers/list.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();