Loading template/app/controller/Examples.js +1 −0 Original line number Diff line number Diff line Loading @@ -60,5 +60,6 @@ Ext.define('Docs.controller.Examples', { activateExampleCard: function() { Ext.getCmp('card-panel').layout.setActiveItem('example'); Ext.getCmp('tree-container').layout.setActiveItem(1); Ext.getCmp('tree-container').show(); } }); template/app/controller/Videos.js +4 −3 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ Ext.define('Docs.controller.Videos', { videoId = videoRe[0]; if (this.currentVideo === videoId) { return this.activateExampleCard(); return this.activateVideoCard(); } this.currentVideo = videoId; Loading @@ -50,12 +50,13 @@ Ext.define('Docs.controller.Videos', { var ifr = document.getElementById("videoplayer"); ifr.contentWindow.location.replace(this.getUrl(videoId)); this.activateExampleCard(); this.activateVideoCard(); }, activateExampleCard: function() { activateVideoCard: function() { Ext.getCmp('card-panel').layout.setActiveItem('video'); Ext.getCmp('tree-container').layout.setActiveItem(3); Ext.getCmp('tree-container').show(); }, getUrl: function(videoId) { Loading Loading
template/app/controller/Examples.js +1 −0 Original line number Diff line number Diff line Loading @@ -60,5 +60,6 @@ Ext.define('Docs.controller.Examples', { activateExampleCard: function() { Ext.getCmp('card-panel').layout.setActiveItem('example'); Ext.getCmp('tree-container').layout.setActiveItem(1); Ext.getCmp('tree-container').show(); } });
template/app/controller/Videos.js +4 −3 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ Ext.define('Docs.controller.Videos', { videoId = videoRe[0]; if (this.currentVideo === videoId) { return this.activateExampleCard(); return this.activateVideoCard(); } this.currentVideo = videoId; Loading @@ -50,12 +50,13 @@ Ext.define('Docs.controller.Videos', { var ifr = document.getElementById("videoplayer"); ifr.contentWindow.location.replace(this.getUrl(videoId)); this.activateExampleCard(); this.activateVideoCard(); }, activateExampleCard: function() { activateVideoCard: function() { Ext.getCmp('card-panel').layout.setActiveItem('video'); Ext.getCmp('tree-container').layout.setActiveItem(3); Ext.getCmp('tree-container').show(); }, getUrl: function(videoId) { Loading