Commit f2d4c3ae authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Only show comments pager on recent comments list.

parent 904fe4aa
Loading
Loading
Loading
Loading
+11 −5
Original line number Diff line number Diff line
@@ -129,11 +129,17 @@ Ext.define('Docs.view.Comments', {
                return '<a href="' + urlPrefix + url + '">' + title + '</a>';
            },
            recentCommentsPager: Ext.Function.bind(function(values) {
                var last = values[values.length - 1];
                if (last && last.total_rows) {
                    return [
                        '<div class="recent-comments-pager">',
                        this.getPagerHtml(values[values.length - 1] || {}),
                        this.getPagerHtml(last),
                        '</div>'
                    ].join('');
                }
                else {
                    return '';
                }
            }, this)
        };