Loading template/app/History.js +6 −1 Original line number Diff line number Diff line Loading @@ -59,8 +59,13 @@ Ext.define("Docs.History", { Docs.App.getController('Examples').loadExample(url.url, true); } else { if (Docs.App.getController('Welcome').isActive()) { Docs.App.getController('Welcome').loadIndex(true); } else { Docs.App.getController('Classes').loadIndex(true); } } }, // Parses current browser location Loading template/app/controller/Welcome.js +8 −0 Original line number Diff line number Diff line Loading @@ -37,5 +37,13 @@ Ext.define('Docs.controller.Welcome', { ); Ext.getCmp("failure").update(tpl.apply({msg: msg})); Ext.getCmp('card-panel').layout.setActiveItem("failure"); }, /** * True if welcome page is available. * @return {Boolean} */ isActive: function() { return !!this.getIndex().getTab(); } }); Loading
template/app/History.js +6 −1 Original line number Diff line number Diff line Loading @@ -59,8 +59,13 @@ Ext.define("Docs.History", { Docs.App.getController('Examples').loadExample(url.url, true); } else { if (Docs.App.getController('Welcome').isActive()) { Docs.App.getController('Welcome').loadIndex(true); } else { Docs.App.getController('Classes').loadIndex(true); } } }, // Parses current browser location Loading
template/app/controller/Welcome.js +8 −0 Original line number Diff line number Diff line Loading @@ -37,5 +37,13 @@ Ext.define('Docs.controller.Welcome', { ); Ext.getCmp("failure").update(tpl.apply({msg: msg})); Ext.getCmp('card-panel').layout.setActiveItem("failure"); }, /** * True if welcome page is available. * @return {Boolean} */ isActive: function() { return !!this.getIndex().getTab(); } });