Commit 38a2ebb5 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Refactor index page names.

Instead of plural "examples" for index page and singular "example"
for item page, now using longer "exampleindex" for index page,
which is easier to differenciate from "example".

Same for guides and videos.
parent c50ec3a2
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -174,7 +174,6 @@ Ext.define('Docs.controller.Classes', {
     * @param {Boolean} noHistory  true to disable adding entry to browser history
     */
    loadClass: function(url, noHistory) {

        Ext.getCmp('card-panel').layout.setActiveItem('classcontainer');
        Ext.getCmp('tree-container').show();
        Ext.getCmp('tree-container').layout.setActiveItem('classtree');
+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ Ext.define('Docs.controller.Examples', {

    loadIndex: function() {
        Ext.getCmp('doctabs').activateTab('#/example');
        Ext.getCmp('card-panel').layout.setActiveItem('examples');
        Ext.getCmp('card-panel').layout.setActiveItem('exampleindex');
        Ext.getCmp('tree-container').layout.setActiveItem('exampletree');
        Ext.getCmp('tree-container').show();
    },
+1 −1
Original line number Diff line number Diff line
@@ -80,7 +80,7 @@ Ext.define('Docs.controller.Guides', {
     */
    loadIndex: function() {
        Ext.getCmp('doctabs').activateTab('#/guide');
        Ext.getCmp('card-panel').layout.setActiveItem('guides');
        Ext.getCmp('card-panel').layout.setActiveItem('guideindex');
        Ext.getCmp('tree-container').show();
        Ext.getCmp('tree-container').layout.setActiveItem('guidetree');
    },
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ Ext.define('Docs.controller.Videos', {

    loadIndex: function() {
        Ext.getCmp('doctabs').activateTab('#/video');
        Ext.getCmp('card-panel').layout.setActiveItem('videos');
        Ext.getCmp('card-panel').layout.setActiveItem('videoindex');
        Ext.getCmp('tree-container').layout.setActiveItem('videotree');
        Ext.getCmp('tree-container').show();
    },
+4 −4
Original line number Diff line number Diff line
@@ -126,7 +126,7 @@ Ext.define('Docs.view.Viewport', {
                                {
                                    autoScroll: true,
                                    xtype: 'guideindex',
                                    id: 'guides'
                                    id: 'guideindex'
                                },
                                {
                                    autoScroll: true,
@@ -139,8 +139,8 @@ Ext.define('Docs.view.Viewport', {
                                    id: 'failure'
                                },
                                {
                                    xtype: 'examplesindex',
                                    id: 'examples'
                                    xtype: 'exampleindex',
                                    id: 'exampleindex'
                                },
                                {
                                    id: 'example',
@@ -150,7 +150,7 @@ Ext.define('Docs.view.Viewport', {
                                },
                                {
                                    xtype: 'videoindex',
                                    id: 'videos'
                                    id: 'videoindex'
                                },
                                {
                                    xtype: 'container',
Loading