comparison app/controller/Sql.js @ 386:00bf2d4f3bd1

Added about dialog.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 30 Aug 2013 11:11:00 +0200
parents d001e88affde
children e3e4adb00f32
comparison
equal deleted inserted replaced
385:08bb418f31c9 386:00bf2d4f3bd1
7 Ext.define('Lada.controller.Sql', { 7 Ext.define('Lada.controller.Sql', {
8 extend: 'Ext.app.Controller', 8 extend: 'Ext.app.Controller',
9 stores: [ 9 stores: [
10 'Proben', // List of found Proben 10 'Proben', // List of found Proben
11 'ProbenList', // List of found Proben 11 'ProbenList', // List of found Proben
12 'Queries' 12 'Queries',
13 'Info',
13 ], 14 ],
14 requires: [ 15 requires: [
15 'Lada.view.widgets.Mst', 16 'Lada.view.widgets.Mst',
16 'Lada.view.widgets.Uwb', 17 'Lada.view.widgets.Uwb',
17 'Lada.view.widgets.Datetime' 18 'Lada.view.widgets.Datetime',
19 'Lada.view.About'
18 ], 20 ],
19 init: function() { 21 init: function() {
20 console.log('Initialising the Sql controller'); 22 console.log('Initialising the Sql controller');
21 this.control({ 23 this.control({
22 // CSS like selector to select element in the viewport. See 24 // CSS like selector to select element in the viewport. See
32 click: this.search 34 click: this.search
33 }, 35 },
34 '#ResetBtn': { 36 '#ResetBtn': {
35 // Map click event on Button. 37 // Map click event on Button.
36 click: this.reset 38 click: this.reset
39 },
40 '#AboutBtn': {
41 // Map click event on Button.
42 click: this.about
37 } 43 }
38 }); 44 });
39 }, 45 },
40 onPanelRendered: function() { 46 onPanelRendered: function() {
41 console.log('The panel was rendered'); 47 console.log('The panel was rendered');
160 // var toHide = Ext.getCmp(queries[i]); 166 // var toHide = Ext.getCmp(queries[i]);
161 // toHide.hide(); 167 // toHide.hide();
162 //} 168 //}
163 //result.hide(); 169 //result.hide();
164 //buttons.hide(); 170 //buttons.hide();
171 },
172 about: function(element, record, index) {
173 var info = this.getInfoStore();
174 var view = Ext.widget('about', {info: info});
165 } 175 }
166 }); 176 });

http://lada.wald.intevation.org