diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-01-28 14:24:12 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-02-02 18:01:15 +0100 |
commit | 29386eccf96aec3e6a4c776f43e74c95474697bb (patch) | |
tree | 48675aa104747f87a6ebb1d4750cad13e434fde4 /apps/comments/js/commentstabview.js | |
parent | d1518045ecdf4dd006224256b25b292a92b1202d (diff) | |
download | nextcloud-server-29386eccf96aec3e6a4c776f43e74c95474697bb.tar.gz nextcloud-server-29386eccf96aec3e6a4c776f43e74c95474697bb.zip |
Add pagination support for comments GUI
Diffstat (limited to 'apps/comments/js/commentstabview.js')
-rw-r--r-- | apps/comments/js/commentstabview.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/comments/js/commentstabview.js b/apps/comments/js/commentstabview.js index b1a3f854fe1..6e511732803 100644 --- a/apps/comments/js/commentstabview.js +++ b/apps/comments/js/commentstabview.js @@ -19,10 +19,8 @@ ' </ul>' + '</div>' + '<div class="empty hidden">{{emptyResultLabel}}</div>' + - /* '<input type="button" class="showMore hidden" value="{{moreLabel}}"' + ' name="show-more" id="show-more" />' + - */ '<div class="loading hidden" style="height: 50px"></div>'; var COMMENT_TEMPLATE = @@ -44,7 +42,8 @@ className: 'tab commentsTabView', events: { - 'submit .newCommentForm': '_onSubmitComment' + 'submit .newCommentForm': '_onSubmitComment', + 'click .showMore': '_onClickShowMore' }, initialize: function() { @@ -144,7 +143,7 @@ this.collection.fetchNext(); }, - _onClickShowMoreVersions: function(ev) { + _onClickShowMore: function(ev) { ev.preventDefault(); this.nextPage(); }, |