summaryrefslogtreecommitdiffstats
path: root/apps/comments/js/commentstabview.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/comments/js/commentstabview.js')
-rw-r--r--apps/comments/js/commentstabview.js7
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();
},