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

Create TreeContainer class.

parent f9ab03d3
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -153,8 +153,7 @@ Ext.define('Docs.controller.Classes', {
        }
        this.getViewport().setPageTitle("");
        Ext.getCmp('doctabs').activateTab('#/api');
        Ext.getCmp('tree-container').show();
        Ext.getCmp('tree-container').layout.setActiveItem('classtree');
        Ext.getCmp('treecontainer').showTree('classtree');
        Ext.getCmp('card-panel').layout.setActiveItem('classindex');
    },

@@ -168,8 +167,7 @@ Ext.define('Docs.controller.Classes', {
     */
    loadClass: function(url, noHistory) {
        Ext.getCmp('card-panel').layout.setActiveItem('classcontainer');
        Ext.getCmp('tree-container').show();
        Ext.getCmp('tree-container').layout.setActiveItem('classtree');
        Ext.getCmp('treecontainer').showTree('classtree');

        if (this.activeUrl === url) {
            this.scrollContent();
+2 −4
Original line number Diff line number Diff line
@@ -38,8 +38,7 @@ Ext.define('Docs.controller.Examples', {
    loadIndex: function() {
        Ext.getCmp('doctabs').activateTab('#/example');
        Ext.getCmp('card-panel').layout.setActiveItem('exampleindex');
        Ext.getCmp('tree-container').layout.setActiveItem('exampletree');
        Ext.getCmp('tree-container').show();
        Ext.getCmp('treecontainer').showTree('exampletree');
    },

    loadExample: function(url, noHistory) {
@@ -59,7 +58,6 @@ Ext.define('Docs.controller.Examples', {

    activateExampleCard: function() {
        Ext.getCmp('card-panel').layout.setActiveItem('example');
        Ext.getCmp('tree-container').layout.setActiveItem('exampletree');
        Ext.getCmp('tree-container').show();
        Ext.getCmp('treecontainer').showTree('exampletree');
    }
});
+2 −4
Original line number Diff line number Diff line
@@ -81,8 +81,7 @@ Ext.define('Docs.controller.Guides', {
    loadIndex: function() {
        Ext.getCmp('doctabs').activateTab('#/guide');
        Ext.getCmp('card-panel').layout.setActiveItem('guideindex');
        Ext.getCmp('tree-container').show();
        Ext.getCmp('tree-container').layout.setActiveItem('guidetree');
        Ext.getCmp('treecontainer').showTree('guidetree');
    },

    /**
@@ -93,8 +92,7 @@ Ext.define('Docs.controller.Guides', {
     */
    loadGuide: function(url, noHistory) {
        Ext.getCmp('card-panel').layout.setActiveItem('guide');
        Ext.getCmp('tree-container').show();
        Ext.getCmp('tree-container').layout.setActiveItem('guidetree');
        Ext.getCmp('treecontainer').showTree('guidetree');

        if (this.activeUrl === url) {
            return this.scrollContent();
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ Ext.define('Docs.controller.Index', {
    loadIndex: function() {
        Ext.getCmp('doctabs').activateTab('#');
        Ext.getCmp('card-panel').layout.setActiveItem('welcome');
        Ext.getCmp('tree-container').hide();
        Ext.getCmp('treecontainer').hide();
    },

    /**
+2 −4
Original line number Diff line number Diff line
@@ -31,8 +31,7 @@ Ext.define('Docs.controller.Videos', {
    loadIndex: function() {
        Ext.getCmp('doctabs').activateTab('#/video');
        Ext.getCmp('card-panel').layout.setActiveItem('videoindex');
        Ext.getCmp('tree-container').layout.setActiveItem('videotree');
        Ext.getCmp('tree-container').show();
        Ext.getCmp('treecontainer').showTree('videotree');
    },

    loadVideo: function(url, noHistory) {
@@ -54,8 +53,7 @@ Ext.define('Docs.controller.Videos', {

    activateVideoCard: function() {
        Ext.getCmp('card-panel').layout.setActiveItem('video');
        Ext.getCmp('tree-container').layout.setActiveItem('videotree');
        Ext.getCmp('tree-container').show();
        Ext.getCmp('treecontainer').showTree('videotree');
    },

    getUrl: function(videoId) {
Loading