Mercurial > lada > lada-client
comparison app/controller/FilterResult.js @ 548:d47ee7439f44
Added new js files.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 06 Mar 2015 12:43:52 +0100 |
parents | |
children | e0b966b32163 |
comparison
equal
deleted
inserted
replaced
547:f172b35a3b92 | 548:d47ee7439f44 |
---|---|
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz | |
2 * Software engineering by Intevation GmbH | |
3 * | |
4 * This file is Free Software under the GNU GPL (v>=3) | |
5 * and comes with ABSOLUTELY NO WARRANTY! Check out | |
6 * the documentation coming with IMIS-Labordaten-Application for details. | |
7 */ | |
8 | |
9 /** | |
10 * Controller for filter result grid. | |
11 */ | |
12 Ext.define('Lada.controller.FilterResult', { | |
13 extend: 'Ext.app.Controller', | |
14 requires: [ | |
15 'Lada.view.window.ProbeEdit' | |
16 ], | |
17 | |
18 init: function() { | |
19 this.control({ | |
20 'filterresultgrid': { | |
21 itemdblclick: this.editItem | |
22 }, | |
23 'filterresultgrid toolbar button[action=add]': { | |
24 click: this.addItem | |
25 }, | |
26 'filterresultgrid toolbar button[action=import]': { | |
27 click: this.uploadFile | |
28 }, | |
29 'filterresultgrid toolbar button[action=export]': { | |
30 click: this.downloadFile | |
31 } | |
32 }); | |
33 this.callParent(arguments); | |
34 }, | |
35 | |
36 editItem: function(grid, record) { | |
37 var win = Ext.create('Lada.view.window.ProbeEdit', { | |
38 record: record | |
39 }); | |
40 win.show(); | |
41 win.initData(); | |
42 }, | |
43 | |
44 addItem: function(button) { | |
45 | |
46 }, | |
47 | |
48 uploadFile: function(button) { | |
49 | |
50 }, | |
51 | |
52 downloadFile: function(button) { | |
53 | |
54 } | |
55 }); |