Mercurial > lada > lada-client
comparison app/view/orte/CreateOrt.js @ 491:850ccfe5f3c4
Code style.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 31 Oct 2014 23:23:32 +0100 |
parents | debfcc7713e3 |
children | 7c0653e8d9f7 |
comparison
equal
deleted
inserted
replaced
490:446e99cfd425 | 491:850ccfe5f3c4 |
---|---|
25 items: [{ | 25 items: [{ |
26 xtype: 'textfield', | 26 xtype: 'textfield', |
27 maxLength: 100, | 27 maxLength: 100, |
28 name: 'ort_beschreibung', | 28 name: 'ort_beschreibung', |
29 fieldLabel: 'Beschreibung' | 29 fieldLabel: 'Beschreibung' |
30 }, | 30 }, { |
31 { | |
32 xtype: 'staat', | 31 xtype: 'staat', |
33 name: 'ort_staatId', | 32 name: 'ort_staatId', |
34 fieldLabel: 'Staat' | 33 fieldLabel: 'Staat' |
35 }, | 34 }, { |
36 { | |
37 xtype: 'verwaltungseinheiten', | 35 xtype: 'verwaltungseinheiten', |
38 name: 'ort_gemId', | 36 name: 'ort_gemId', |
39 fieldLabel: 'Gemeinde', | 37 fieldLabel: 'Gemeinde', |
40 listeners: { | 38 listeners: { |
41 'select': { | 39 'select': { |
48 lon.setValue(newValue[0].data.longitude); | 46 lon.setValue(newValue[0].data.longitude); |
49 lat.setValue(newValue[0].data.latitude); | 47 lat.setValue(newValue[0].data.latitude); |
50 } | 48 } |
51 } | 49 } |
52 } | 50 } |
53 }, | 51 }, { |
54 { | |
55 xtype: 'numberfield', | 52 xtype: 'numberfield', |
56 name: 'ort_latitude', | 53 name: 'ort_latitude', |
57 fieldLabel: 'Lat' | 54 fieldLabel: 'Lat' |
58 }, | 55 }, { |
59 { | |
60 xtype: 'numberfield', | 56 xtype: 'numberfield', |
61 name: 'ort_longitude', | 57 name: 'ort_longitude', |
62 fieldLabel: 'Lon' | 58 fieldLabel: 'Lon' |
63 }, | 59 }, { |
64 { | |
65 xtype: 'numberfield', | 60 xtype: 'numberfield', |
66 name: 'ort_hoeheLand', | 61 name: 'ort_hoeheLand', |
67 fieldLabel: 'Höhe' | 62 fieldLabel: 'Höhe' |
68 }] | 63 }] |
69 }); | 64 }); |
70 | 65 |
71 me.items = [form]; | 66 me.items = [form]; |
72 this.buttons = [ | 67 this.buttons = [{ |
73 { | 68 text: 'Speichern', |
74 text: 'Speichern', | 69 scope: form, |
75 scope: form, | 70 action: 'save' |
76 action: 'save' | 71 }, { |
77 }, | 72 text: 'Abbrechen', |
78 { | 73 scope: this, |
79 text: 'Abbrechen', | 74 handler: this.close |
80 scope: this, | 75 }]; |
81 handler: this.close | |
82 } | |
83 ]; | |
84 this.callParent(arguments); | 76 this.callParent(arguments); |
85 } | 77 } |
86 }); | 78 }); |
87 | 79 |