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

Rename xtypes of comments List, Users and Targets.

Settle to a nice camelCased naming scheme.
parent 2c55bfc3
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ Ext.define('Docs.controller.Comments', {
        },
        {
            ref: 'commentsList',
            selector: 'commentslist'
            selector: 'commentsList'
        }
    ],

@@ -142,20 +142,20 @@ Ext.define('Docs.controller.Comments', {
                }
            },

            'commentslist': {
            'commentsList': {
                settingChange: function() {
                    this.fetchRecentComments();
                }
            },

            'commentsusers': {
            'commentsUsers': {
                select: function(username) {
                    this.recentCommentsSettings.username = username;
                    this.fetchRecentComments();
                }
            },

            'commentstargets': {
            'commentsTargets': {
                select: function(target) {
                    this.recentCommentsSettings.targetId = target && target.get("id");
                    this.fetchRecentComments();
+5 −5
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ Ext.define('Docs.view.comments.Index', {
    items: [
        {
            region: "center",
            xtype: "commentslist"
            xtype: "commentsList"
        },
        {
            region: "east",
@@ -37,10 +37,10 @@ Ext.define('Docs.view.comments.Index', {
            ],
            items: [
                {
                    xtype: "commentsusers"
                    xtype: "commentsUsers"
                },
                {
                    xtype: "commentstargets"
                    xtype: "commentsTargets"
                }
            ]
        }
@@ -50,8 +50,8 @@ Ext.define('Docs.view.comments.Index', {
        this.callParent(arguments);

        var cardPanel = this.down("#cardPanel");
        var users = this.down("commentsusers");
        var targets = this.down("commentstargets");
        var users = this.down("commentsUsers");
        var targets = this.down("commentsTargets");
        this.down("commentsHeaderMenu").on("select", function(item) {
            if (item === "users") {
                targets.deselectAll();
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
 */
Ext.define('Docs.view.comments.List', {
    extend: 'Ext.panel.Panel',
    alias: "widget.commentslist",
    alias: "widget.commentsList",
    requires: ['Docs.Settings'],
    componentCls: 'comment-index-container',

+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
 * View for showing topics (classes, members, guides, ...).
 */
Ext.define('Docs.view.comments.Targets', {
    alias: "widget.commentstargets",
    alias: "widget.commentsTargets",
    extend: 'Ext.panel.Panel',
    componentCls: "comments-targets",
    requires: ["Docs.Comments"],
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
 * Either sorted by upvotes or comment count.
 */
Ext.define('Docs.view.comments.Users', {
    alias: "widget.commentsusers",
    alias: "widget.commentsUsers",
    extend: 'Ext.panel.Panel',
    componentCls: "comments-users",
    requires: ["Docs.Comments"],