Mercurial > lada > lada-client
comparison app/controller/FilterResult.js @ 810:a5373ee662e2
Created a loading Animation for the Filterresultgrid
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Wed, 27 May 2015 16:01:59 +0200 |
parents | 3bc19188fc3a |
children | 5cdfe0ff1df3 |
comparison
equal
deleted
inserted
replaced
809:3bc19188fc3a | 810:a5373ee662e2 |
---|---|
15 'Lada.view.window.ProbeEdit', | 15 'Lada.view.window.ProbeEdit', |
16 'Lada.view.window.Messprogramm' | 16 'Lada.view.window.Messprogramm' |
17 ], | 17 ], |
18 | 18 |
19 /** | 19 /** |
20 * Initialize the Controller with 4 listeners | 20 * Initialize the Controller with listeners |
21 */ | 21 */ |
22 init: function() { | 22 init: function() { |
23 this.control({ | 23 this.control({ |
24 'filterresultgrid': { | 24 'filterresultgrid': { |
25 itemdblclick: this.editItem | 25 itemdblclick: this.editItem |
26 }, | |
27 'store': { | |
28 beforeload: this.loadingAnimationOn, | |
29 load: this.loadingAnimationOff | |
26 }, | 30 }, |
27 'filterresultgrid toolbar button[action=addProbe]': { | 31 'filterresultgrid toolbar button[action=addProbe]': { |
28 click: this.addProbeItem | 32 click: this.addProbeItem |
29 }, | 33 }, |
30 'filterresultgrid toolbar button[action=addMessprogramm]': { | 34 'filterresultgrid toolbar button[action=addMessprogramm]': { |
37 click: this.downloadFile | 41 click: this.downloadFile |
38 } | 42 } |
39 }); | 43 }); |
40 this.callParent(arguments); | 44 this.callParent(arguments); |
41 }, | 45 }, |
46 /** | |
47 * Enable the Loading Animation of the Grid. | |
48 */ | |
49 loadingAnimationOn: function(store, operation) { | |
50 store.up('grid').setLoading(true); | |
51 }, | |
52 | |
53 /** | |
54 * Disable the Loading Animation of the Grid. | |
55 */ | |
56 loadingAnimationOff: function(store, operation) { | |
57 store.up('grid').setLoading(false); | |
58 }, | |
42 | 59 |
43 /** | 60 /** |
44 * This function is called after a Row in the | 61 * This function is called after a Row in the |
45 * {@link Lada.view.grid.FilterResult} | 62 * {@link Lada.view.grid.FilterResult} |
46 * was double-clicked. | 63 * was double-clicked. |