timeline update: displaying load more button;

This commit is contained in:
tmshv committed 2015-07-09 05:25:03 +03:00
1 parent 11bcea1091
commit f2816229ff
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -67,6 +67,11 @@ module.exports = function(app) {
return i['type']; return i['type'];
}; };
$scope.showFooter = function () {
var canLoadMore = true;
return $scope.feed && $scope.feed.length && canLoadMore;
};
$scope.loadNext = function () { $scope.loadNext = function () {
$scope.timelineUpdating = true; $scope.timelineUpdating = true;
usSpinnerService.spin("timelineMore"); usSpinnerService.spin("timelineMore");
+1 -1
View File
@@ -5,7 +5,7 @@
ng-class="{left: isEven($index), right: !isEven($index)}"> ng-class="{left: isEven($index), right: !isEven($index)}">
</timeline-record> </timeline-record>
<div class="timeline-footer"> <div class="timeline-footer" ng-show="showFooter()">
<button class="more" <button class="more"
ng-click="loadNext()" ng-click="loadNext()"
ng-disabled="timelineUpdating"> ng-disabled="timelineUpdating">