Commit 88aa9e5b authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Fix opening of comments section from toolbar.

The #m-comments had been left unreplaced with .comments-section
parent 61004f59
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -121,8 +121,8 @@ Ext.define('Docs.controller.Comments', {
            'classoverview toolbar': {
                afterrender: function(cmp) {
                    cmp.el.addListener('click', function() {
                        var commentsDiv = Ext.get(Ext.query('#m-comment .comments-div')[0]);
                        this.getOverview().scrollToEl('#m-comment', -20);
                        var commentsDiv = Ext.get(Ext.query('.comments-section .comments-div')[0]);
                        this.getOverview().scrollToEl('.comments-section', -20);
                        this.openComments(commentsDiv);
                    }, this, {
                        delegate: '.comment-btn'