Loading template/app/Application.js +3 −3 Original line number Diff line number Diff line Loading @@ -46,9 +46,9 @@ Ext.define('Docs.Application', { Docs.initEventTracking(); } // setInterval(function(){ // Ext.DomQuery.select('link')[4].href = "resources/css/viewport.css?" + Math.ceil(Math.random() * 100000000) // }, 1000) setInterval(function(){ Ext.DomQuery.select('link')[4].href = "resources/css/viewport.css?" + Math.ceil(Math.random() * 100000000) }, 1000) } }); template/app/controller/Examples.js +12 −0 Original line number Diff line number Diff line Loading @@ -12,6 +12,16 @@ Ext.define('Docs.controller.Examples', { ], init: function() { this.addEvents( /** * @event showExample * Fired after an example is shown. Used for analytics event tracking. * @param {String} example name of the example. */ "showExample" ); this.control({ 'examplestree': { exampleclick: function(url, event) { Loading Loading @@ -40,6 +50,8 @@ Ext.define('Docs.controller.Examples', { noHistory || Docs.History.push(url); this.fireEvent('showExample', url); var ifr = document.getElementById("exampleIframe"); ifr.contentWindow.location.replace('extjs/' + url); setTimeout(this.activateExampleCard, 150); // Prevent previous example from flashing up Loading template/app/controller/Guides.js +5 −0 Original line number Diff line number Diff line Loading @@ -33,6 +33,11 @@ Ext.define('Docs.controller.Guides', { this.handleUrlClick(url, event, this.getTree()); } }, 'guidespanel': { guideclick: function(url) { this.loadGuide('#/' + url); } }, 'indexcontainer': { afterrender: function(cmp) { cmp.el.addListener('click', function(event, el) { Loading template/app/controller/Tabs.js +11 −0 Original line number Diff line number Diff line Loading @@ -12,6 +12,10 @@ Ext.define('Docs.controller.Tabs', { { ref: 'guideTree', selector: 'classtree[cmpName=guidetree]' }, { ref: 'exampleTree', selector: 'examplestree' } ], Loading @@ -31,6 +35,13 @@ Ext.define('Docs.controller.Tabs', { scope: this }); this.getController('Examples').addListener({ showExample: function(example) { this.addTabFromTree(example, this.getExampleTree()); }, scope: this }); this.control({ 'container [componentCls=doctabs]': { afterrender: function(cmp) { Loading template/app/controller/Videos.js +0 −1 Original line number Diff line number Diff line Loading @@ -73,7 +73,6 @@ Ext.define('Docs.controller.Videos', { prev: function() { if (!this.currentVideo) return; var idx = Ext.Array.indexOf(this.videoIds(), this.currentVideo); console.log(this.videoIds()[this.videoIds().length - 1]) this.setUrl((idx == 0) ? this.videoIds()[this.videoIds().length - 1] : this.videoIds()[idx - 1]); }, Loading Loading
template/app/Application.js +3 −3 Original line number Diff line number Diff line Loading @@ -46,9 +46,9 @@ Ext.define('Docs.Application', { Docs.initEventTracking(); } // setInterval(function(){ // Ext.DomQuery.select('link')[4].href = "resources/css/viewport.css?" + Math.ceil(Math.random() * 100000000) // }, 1000) setInterval(function(){ Ext.DomQuery.select('link')[4].href = "resources/css/viewport.css?" + Math.ceil(Math.random() * 100000000) }, 1000) } });
template/app/controller/Examples.js +12 −0 Original line number Diff line number Diff line Loading @@ -12,6 +12,16 @@ Ext.define('Docs.controller.Examples', { ], init: function() { this.addEvents( /** * @event showExample * Fired after an example is shown. Used for analytics event tracking. * @param {String} example name of the example. */ "showExample" ); this.control({ 'examplestree': { exampleclick: function(url, event) { Loading Loading @@ -40,6 +50,8 @@ Ext.define('Docs.controller.Examples', { noHistory || Docs.History.push(url); this.fireEvent('showExample', url); var ifr = document.getElementById("exampleIframe"); ifr.contentWindow.location.replace('extjs/' + url); setTimeout(this.activateExampleCard, 150); // Prevent previous example from flashing up Loading
template/app/controller/Guides.js +5 −0 Original line number Diff line number Diff line Loading @@ -33,6 +33,11 @@ Ext.define('Docs.controller.Guides', { this.handleUrlClick(url, event, this.getTree()); } }, 'guidespanel': { guideclick: function(url) { this.loadGuide('#/' + url); } }, 'indexcontainer': { afterrender: function(cmp) { cmp.el.addListener('click', function(event, el) { Loading
template/app/controller/Tabs.js +11 −0 Original line number Diff line number Diff line Loading @@ -12,6 +12,10 @@ Ext.define('Docs.controller.Tabs', { { ref: 'guideTree', selector: 'classtree[cmpName=guidetree]' }, { ref: 'exampleTree', selector: 'examplestree' } ], Loading @@ -31,6 +35,13 @@ Ext.define('Docs.controller.Tabs', { scope: this }); this.getController('Examples').addListener({ showExample: function(example) { this.addTabFromTree(example, this.getExampleTree()); }, scope: this }); this.control({ 'container [componentCls=doctabs]': { afterrender: function(cmp) { Loading
template/app/controller/Videos.js +0 −1 Original line number Diff line number Diff line Loading @@ -73,7 +73,6 @@ Ext.define('Docs.controller.Videos', { prev: function() { if (!this.currentVideo) return; var idx = Ext.Array.indexOf(this.videoIds(), this.currentVideo); console.log(this.videoIds()[this.videoIds().length - 1]) this.setUrl((idx == 0) ? this.videoIds()[this.videoIds().length - 1] : this.videoIds()[idx - 1]); }, Loading