Mercurial > lada > lada-client
comparison app/view/Viewport.js @ 173:1a11ae666f11
Added options to open dialogs directly without the need to click through the
applications.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Wed, 03 Jul 2013 16:49:41 +0200 |
parents | ed7fb4fa32dc |
children | 133df8f75a12 |
comparison
equal
deleted
inserted
replaced
172:cfa0cc437781 | 173:1a11ae666f11 |
---|---|
4 'Lada.view.search.List', | 4 'Lada.view.search.List', |
5 'Lada.view.search.Query1', | 5 'Lada.view.search.Query1', |
6 'Lada.view.search.Query2', | 6 'Lada.view.search.Query2', |
7 'Lada.view.proben.List' | 7 'Lada.view.proben.List' |
8 ], | 8 ], |
9 | |
9 initComponent: function() { | 10 initComponent: function() { |
10 console.log('Setting up Viewport'); | 11 console.log('Setting up Viewport'); |
12 this.initSearch(); | |
13 | |
14 // Development related: | |
15 // Disable "initSearch" call and enable one of the following init | |
16 // methods to get a dialog directly without the need to click through | |
17 // the whole application. | |
18 //this.initMessung(); | |
19 | |
20 this.callParent(arguments); | |
21 }, | |
22 initMessung: function() { | |
23 var messung = Ext.create('Lada.model.Messung'); | |
24 var win = Ext.create('Lada.view.messungen.Create', {model: messung}); | |
25 }, | |
26 initSearch: function() { | |
11 this.items = { | 27 this.items = { |
12 xtype: 'panel', | 28 xtype: 'panel', |
13 title: '<center>Probenauswahlmaske</center>', | 29 title: '<center>Probenauswahlmaske</center>', |
14 bodyPadding: '10 10', | 30 bodyPadding: '10 10', |
15 items: [ | 31 items: [ |
58 xtype: 'probenlist', | 74 xtype: 'probenlist', |
59 hidden: false | 75 hidden: false |
60 } | 76 } |
61 ] | 77 ] |
62 }; | 78 }; |
63 this.callParent(arguments); | |
64 } | 79 } |
65 }); | 80 }); |