Mercurial > lada > lada-client
annotate app/controller/Messwert.js @ 543:ce188e2fab06
Added custom textfield to shwo errors and warnings.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Thu, 18 Dec 2014 15:03:51 +0100 |
parents | 99e738c17b81 |
children |
rev | line source |
---|---|
472
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
453
diff
changeset
|
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
453
diff
changeset
|
2 * Software engineering by Intevation GmbH |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
453
diff
changeset
|
3 * |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
453
diff
changeset
|
4 * This file is Free Software under the GNU GPL (v>=3) |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
453
diff
changeset
|
5 * and comes with ABSOLUTELY NO WARRANTY! Check out |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
496
diff
changeset
|
6 * the documentation coming with IMIS-Labordaten-Application for details. |
472
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
453
diff
changeset
|
7 */ |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
453
diff
changeset
|
8 |
290
fe51239321d9
Inherit from Base controller
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
284
diff
changeset
|
9 /** |
fe51239321d9
Inherit from Base controller
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
284
diff
changeset
|
10 * Controller for Messwerte |
fe51239321d9
Inherit from Base controller
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
284
diff
changeset
|
11 */ |
197
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
12 Ext.define('Lada.controller.Messwert', { |
290
fe51239321d9
Inherit from Base controller
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
284
diff
changeset
|
13 extend: 'Lada.controller.Base', |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
14 |
197
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
15 views: [ |
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
16 'messwerte.Create' |
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
17 ], |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
18 |
197
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
19 stores: [ |
284
c32be5f97b5d
Fix for issue58. Get the related probe for the messwert and check if the probe
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
219
diff
changeset
|
20 'Proben', |
197
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
21 'Messungen', |
496
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
22 'Messwerte' |
197
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
23 ], |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
24 |
197
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
25 init: function() { |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
26 this.callParent(arguments); |
290
fe51239321d9
Inherit from Base controller
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
284
diff
changeset
|
27 }, |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
28 |
290
fe51239321d9
Inherit from Base controller
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
284
diff
changeset
|
29 addListeners: function() { |
197
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
30 this.control({ |
540
99e738c17b81
Add detail button to tables
Roland Geider <roland.geider@intevation.de>
parents:
525
diff
changeset
|
31 'messwertelist toolbar button[action=open]': { |
99e738c17b81
Add detail button to tables
Roland Geider <roland.geider@intevation.de>
parents:
525
diff
changeset
|
32 click: this.editItem |
99e738c17b81
Add detail button to tables
Roland Geider <roland.geider@intevation.de>
parents:
525
diff
changeset
|
33 }, |
197
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
34 'messwertelist toolbar button[action=add]': { |
290
fe51239321d9
Inherit from Base controller
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
284
diff
changeset
|
35 click: this.addItem |
197
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
36 }, |
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
37 'messwertelist toolbar button[action=delete]': { |
290
fe51239321d9
Inherit from Base controller
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
284
diff
changeset
|
38 click: this.deleteItem |
197
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
39 }, |
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
40 'messwertecreate button[action=save]': { |
290
fe51239321d9
Inherit from Base controller
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
284
diff
changeset
|
41 click: this.saveItem |
197
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
42 }, |
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
43 'messwertecreate form': { |
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
44 savesuccess: this.createSuccess, |
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
45 savefailure: this.createFailure |
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
46 } |
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
47 }); |
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
48 }, |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
49 |
290
fe51239321d9
Inherit from Base controller
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
284
diff
changeset
|
50 saveItem: function(button) { |
197
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
51 var form = button.up('window').down('form'); |
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
52 form.commit(); |
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
53 }, |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
54 |
290
fe51239321d9
Inherit from Base controller
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
284
diff
changeset
|
55 addItem: function(button) { |
197
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
56 var messung = Ext.create('Lada.model.Messwert'); |
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
57 messung.set('probeId', button.probeId); |
213
f0c59e7ee0bc
Set messungsid for new messungunswerte
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
197
diff
changeset
|
58 messung.set('messungsId', button.parentId); |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
496
diff
changeset
|
59 Ext.widget('messwertecreate', { |
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
496
diff
changeset
|
60 model: messung |
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
496
diff
changeset
|
61 }); |
197
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
62 }, |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
63 |
540
99e738c17b81
Add detail button to tables
Roland Geider <roland.geider@intevation.de>
parents:
525
diff
changeset
|
64 editItem: function(button) { |
99e738c17b81
Add detail button to tables
Roland Geider <roland.geider@intevation.de>
parents:
525
diff
changeset
|
65 var grid = button.up('grid'); |
99e738c17b81
Add detail button to tables
Roland Geider <roland.geider@intevation.de>
parents:
525
diff
changeset
|
66 var selection = grid.getView().getSelectionModel().getSelection()[0]; |
99e738c17b81
Add detail button to tables
Roland Geider <roland.geider@intevation.de>
parents:
525
diff
changeset
|
67 var messwertId = selection.getId(); |
99e738c17b81
Add detail button to tables
Roland Geider <roland.geider@intevation.de>
parents:
525
diff
changeset
|
68 var record = selection.store.getById(messwertId); |
99e738c17b81
Add detail button to tables
Roland Geider <roland.geider@intevation.de>
parents:
525
diff
changeset
|
69 |
490
446e99cfd425
Updated views and controllers using the new model and stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
472
diff
changeset
|
70 var mstore = Ext.data.StoreManager.get('Messungen'); |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
496
diff
changeset
|
71 var messung = mstore.getById(record.get('messungsId')); |
490
446e99cfd425
Updated views and controllers using the new model and stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
472
diff
changeset
|
72 record.getAuthInfo(this.initEditWindow, messung.get('probeId')); |
362
6a7a9267e00f
Issue56: Changed way how to set the form and window to readonly. Now all dialogs should
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
290
diff
changeset
|
73 }, |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
74 |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
496
diff
changeset
|
75 initEditWindow: function(record, readonly) { |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
76 var view = Ext.widget('messwertecreate', { |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
77 model: record |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
78 }); |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
496
diff
changeset
|
79 var ignore = []; |
362
6a7a9267e00f
Issue56: Changed way how to set the form and window to readonly. Now all dialogs should
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
290
diff
changeset
|
80 if (readonly) { |
284
c32be5f97b5d
Fix for issue58. Get the related probe for the messwert and check if the probe
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
219
diff
changeset
|
81 var form = view.down('form'); |
362
6a7a9267e00f
Issue56: Changed way how to set the form and window to readonly. Now all dialogs should
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
290
diff
changeset
|
82 form.setReadOnly(true, ignore); |
284
c32be5f97b5d
Fix for issue58. Get the related probe for the messwert and check if the probe
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
219
diff
changeset
|
83 } |
197
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
84 }, |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
85 |
290
fe51239321d9
Inherit from Base controller
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
284
diff
changeset
|
86 deleteItem: function(button) { |
197
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
87 var grid = button.up('grid'); |
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
88 var selection = grid.getView().getSelectionModel().getSelection()[0]; |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
89 Ext.MessageBox.confirm('Löschen', 'Sind Sie sicher?', function(btn) { |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
90 if (btn === 'yes') { |
197
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
91 var store = grid.getStore(); |
490
446e99cfd425
Updated views and controllers using the new model and stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
472
diff
changeset
|
92 var deleteUrl = selection.getProxy().url + selection.getId(); |
219
82f8b5638f26
Fixed delete call
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
213
diff
changeset
|
93 Ext.Ajax.request({ |
82f8b5638f26
Fixed delete call
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
213
diff
changeset
|
94 url: deleteUrl, |
82f8b5638f26
Fixed delete call
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
213
diff
changeset
|
95 method: 'DELETE', |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
496
diff
changeset
|
96 success: function() { |
219
82f8b5638f26
Fixed delete call
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
213
diff
changeset
|
97 store.reload(); |
82f8b5638f26
Fixed delete call
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
213
diff
changeset
|
98 } |
82f8b5638f26
Fixed delete call
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
213
diff
changeset
|
99 }); |
197
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
100 } |
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
101 }); |
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
102 }, |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
103 |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
496
diff
changeset
|
104 createSuccess: function(form) { |
197
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
105 // Reload store |
453
2b886fc38282
Formatting
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
362
diff
changeset
|
106 var store = this.getMesswerteStore(); |
197
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
107 store.reload(); |
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
108 var win = form.up('window'); |
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
109 win.close(); |
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
110 }, |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
111 |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
496
diff
changeset
|
112 createFailure: function(form) { |
197
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
113 Ext.MessageBox.show({ |
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
114 title: 'Fehler beim Speichern', |
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
115 msg: form.message, |
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
116 icon: Ext.MessageBox.ERROR, |
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
117 buttons: Ext.Msg.OK |
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
118 }); |
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
119 }, |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
120 |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
496
diff
changeset
|
121 editSuccess: function(form) { |
197
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
122 // Reload store |
453
2b886fc38282
Formatting
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
362
diff
changeset
|
123 var store = this.getMesswerteStore(); |
197
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
124 store.reload(); |
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
125 var win = form.up('window'); |
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
126 win.close(); |
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
127 }, |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
128 |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
496
diff
changeset
|
129 editFailure: function(form) { |
197
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
130 Ext.MessageBox.show({ |
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
131 title: 'Fehler beim Speichern', |
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
132 msg: form.message, |
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
133 icon: Ext.MessageBox.ERROR, |
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
134 buttons: Ext.Msg.OK |
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
135 }); |
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
136 } |
748614e867b1
Added messwerte controller to be able to add, edit and delete messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
137 }); |