From 474fe5544cb0df0567a806c66de99eb2501a3512 Mon Sep 17 00:00:00 2001 From: Caio SBA Date: Thu, 10 Sep 2015 04:05:21 -0300 Subject: [PATCH] Ticket #83: Just show "more comments" button if there are 20 comments --- www/html/_proposal.html | 2 +- www/js/controllers.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/www/html/_proposal.html b/www/html/_proposal.html index 39c1f07..7a15f6a 100644 --- a/www/html/_proposal.html +++ b/www/html/_proposal.html @@ -73,7 +73,7 @@

- +

diff --git a/www/js/controllers.js b/www/js/controllers.js index 23e866d..1e4ba22 100644 --- a/www/js/controllers.js +++ b/www/js/controllers.js @@ -538,7 +538,7 @@ angular.module('confjuvapp.controllers', []) } else { // Initiate the modal - $ionicModal.fromTemplateUrl('html/_proposal.html?17', { + $ionicModal.fromTemplateUrl('html/_proposal.html?18', { scope: $scope, animation: 'slide-in-up' }).then(function(modal) { @@ -942,7 +942,7 @@ angular.module('confjuvapp.controllers', []) if (!$scope.proposal.comments) $scope.proposal.comments = []; var last = $scope.proposal.lastCommentId || 0; - path = 'articles/' + $scope.proposal.id + '/comments?oldest&reference_id=' + last + '&private_token=' + $scope.token; + path = 'articles/' + $scope.proposal.id + '/comments?oldest&reference_id=' + last + '&private_token=' + $scope.token + '&t=' + (new Date().getTime()); $http.get(ConfJuvAppUtils.pathTo(path), config) .then(function(resp) { -- libgit2 0.21.2