Loading template/app/controller/Examples.js +10 −0 Original line number Diff line number Diff line Loading @@ -68,6 +68,11 @@ Ext.define('Docs.controller.Examples', { }, this, { delegate: 'button.landscape' }); cmp.el.addListener('click', function(e, el) { this.openInNewWindow(); }, this, { delegate: 'button.new-window' }); } } }); Loading Loading @@ -119,5 +124,10 @@ Ext.define('Docs.controller.Examples', { changeDevice: function(device) { this.getPage().setDevice(device); }, openInNewWindow: function() { var example = this.getExample(this.activeUrl); window.open("touch/examples/" + example.url); } }); template/app/view/examples/TouchContainer.js +4 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,10 @@ Ext.define('Docs.view.examples.TouchContainer', { '<button class="landscape selected">Landscape</button>', '<button class="portrait">Portrait</button>', '<div>', '<span class="separator"> </span>', '<div>', '<button class="new-window">Open in new window</button>', '<div>', '</div>' ].join('') }]; Loading Loading
template/app/controller/Examples.js +10 −0 Original line number Diff line number Diff line Loading @@ -68,6 +68,11 @@ Ext.define('Docs.controller.Examples', { }, this, { delegate: 'button.landscape' }); cmp.el.addListener('click', function(e, el) { this.openInNewWindow(); }, this, { delegate: 'button.new-window' }); } } }); Loading Loading @@ -119,5 +124,10 @@ Ext.define('Docs.controller.Examples', { changeDevice: function(device) { this.getPage().setDevice(device); }, openInNewWindow: function() { var example = this.getExample(this.activeUrl); window.open("touch/examples/" + example.url); } });
template/app/view/examples/TouchContainer.js +4 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,10 @@ Ext.define('Docs.view.examples.TouchContainer', { '<button class="landscape selected">Landscape</button>', '<button class="portrait">Portrait</button>', '<div>', '<span class="separator"> </span>', '<div>', '<button class="new-window">Open in new window</button>', '<div>', '</div>' ].join('') }]; Loading