From f2816229ff8c5a785e38a6d6f2a3306ad6bc0d5c Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Thu, 9 Jul 2015 05:25:03 +0300 Subject: [PATCH] timeline update: displaying load more button; --- client/ui/timeline.js | 5 +++++ templates/views/timeline.html | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/client/ui/timeline.js b/client/ui/timeline.js index f4a8730d..5bcf0310 100644 --- a/client/ui/timeline.js +++ b/client/ui/timeline.js @@ -67,6 +67,11 @@ module.exports = function(app) { return i['type']; }; + $scope.showFooter = function () { + var canLoadMore = true; + return $scope.feed && $scope.feed.length && canLoadMore; + }; + $scope.loadNext = function () { $scope.timelineUpdating = true; usSpinnerService.spin("timelineMore"); diff --git a/templates/views/timeline.html b/templates/views/timeline.html index e46d4cd8..21887935 100644 --- a/templates/views/timeline.html +++ b/templates/views/timeline.html @@ -5,7 +5,7 @@ ng-class="{left: isEven($index), right: !isEven($index)}"> -