# HG changeset patch # User Torsten Irländer # Date 1372862981 -7200 # Node ID 1a11ae666f11273f60ed287c93108f9c03d53b42 # Parent cfa0cc437781671f32517651858e08d1a78d1b94 Added options to open dialogs directly without the need to click through the applications. diff -r cfa0cc437781 -r 1a11ae666f11 app/view/Viewport.js --- a/app/view/Viewport.js Wed Jul 03 16:34:32 2013 +0200 +++ b/app/view/Viewport.js Wed Jul 03 16:49:41 2013 +0200 @@ -6,8 +6,24 @@ 'Lada.view.search.Query2', 'Lada.view.proben.List' ], + initComponent: function() { console.log('Setting up Viewport'); + this.initSearch(); + + // Development related: + // Disable "initSearch" call and enable one of the following init + // methods to get a dialog directly without the need to click through + // the whole application. + //this.initMessung(); + + this.callParent(arguments); + }, + initMessung: function() { + var messung = Ext.create('Lada.model.Messung'); + var win = Ext.create('Lada.view.messungen.Create', {model: messung}); + }, + initSearch: function() { this.items = { xtype: 'panel', title: '
Probenauswahlmaske
', @@ -60,6 +76,5 @@ } ] }; - this.callParent(arguments); } });