summaryrefslogtreecommitdiffstats
path: root/apps/comments/js/commentcollection.js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-01-28 14:26:07 +0100
committerVincent Petry <pvince81@owncloud.com>2016-02-02 18:01:15 +0100
commit67a36a2cca65df4d4775e9ae5e1c0e51172ae081 (patch)
tree3aeb93d9e8bcab37627407c7c45c6e50a1825b9d /apps/comments/js/commentcollection.js
parent29386eccf96aec3e6a4c776f43e74c95474697bb (diff)
downloadnextcloud-server-67a36a2cca65df4d4775e9ae5e1c0e51172ae081.tar.gz
nextcloud-server-67a36a2cca65df4d4775e9ae5e1c0e51172ae081.zip
Use last comment's time for pagination
Diffstat (limited to 'apps/comments/js/commentcollection.js')
-rw-r--r--apps/comments/js/commentcollection.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/comments/js/commentcollection.js b/apps/comments/js/commentcollection.js
index 1fda4a4c709..eaa7a1d53fa 100644
--- a/apps/comments/js/commentcollection.js
+++ b/apps/comments/js/commentcollection.js
@@ -75,7 +75,7 @@
' <oc:limit>' + this._limit + '</oc:limit>\n';
if (this.length > 0) {
- body += ' <oc:datetime>' + this.first().get('creationDateTime') + '</oc:datetime>\n';
+ body += ' <oc:datetime>' + this.last().get('creationDateTime') + '</oc:datetime>\n';
}
body += '</D:report>\n';