Mercurial > lada > lada-client
comparison app/view/Viewport.js @ 491:850ccfe5f3c4
Code style.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 31 Oct 2014 23:23:32 +0100 |
parents | 446e99cfd425 |
children | 7c0653e8d9f7 |
comparison
equal
deleted
inserted
replaced
490:446e99cfd425 | 491:850ccfe5f3c4 |
---|---|
90 probeId: "000007575853X", | 90 probeId: "000007575853X", |
91 messungsId: "1" | 91 messungsId: "1" |
92 }, | 92 }, |
93 callback: function() { | 93 callback: function() { |
94 var model = store.data.items[0]; | 94 var model = store.data.items[0]; |
95 var win = Ext.create('Lada.view.messwerte.Create', {model: model}); | 95 var win = Ext.create('Lada.view.messwerte.Create', { |
96 model: model | |
97 }); | |
96 } | 98 } |
97 }); | 99 }); |
98 }, | 100 }, |
99 /** | 101 /** |
100 * Function to initialize the edit window for a priticular ort directly | 102 * Function to initialize the edit window for a priticular ort directly |
101 * @private | 103 * @private |
102 */ | 104 */ |
103 initOrt: function() { | 105 initOrt: function() { |
104 var ort = Ext.create('Lada.model.Ort'); | 106 var ort = Ext.create('Lada.model.Ort'); |
105 var win = Ext.create('Lada.view.orte.Create', {model: ort}); | 107 var win = Ext.create('Lada.view.orte.Create', { |
108 model: ort | |
109 }); | |
106 }, | 110 }, |
107 /** | 111 /** |
108 * Function to initialize the edit window for a priticular ort directly | 112 * Function to initialize the edit window for a priticular ort directly |
109 * @private | 113 * @private |
110 */ | 114 */ |
158 bodyPadding: '10 10', | 162 bodyPadding: '10 10', |
159 layout: { | 163 layout: { |
160 type: 'vbox', | 164 type: 'vbox', |
161 align: 'stretch' | 165 align: 'stretch' |
162 }, | 166 }, |
163 dockedItems: [ | 167 dockedItems: [{ |
164 { | 168 xtype: "toolbar", |
165 xtype: "toolbar", | 169 dock: "top", |
166 dock: "top", | 170 items: [{ |
167 items: [{ | 171 xtype: "splitbutton", |
168 xtype: "splitbutton", | 172 text: "Info", |
169 text: "Info", | 173 menu: { |
170 menu: { | 174 items: [{ |
171 items: [{ | 175 id: 'AboutBtn', |
172 id: 'AboutBtn', | 176 text: "About" |
173 text: "About" | 177 }] |
174 }] | 178 } |
175 } | 179 }, "->", { |
176 }, | 180 xtype: 'box', |
177 "->", | 181 autoEl: { |
178 {xtype: 'box', autoEl: {tag: 'img', src:'gfx/user-identity.png'}}, | 182 tag: 'img', |
179 {xtype: "tbtext", id:"userinfo", text:""}, | 183 src:'gfx/user-identity.png' |
180 {xtype: 'box', autoEl: {tag: 'img', src:'gfx/network-workgroup.png'}}, | 184 } |
181 {xtype: "tbtext", id:"groupinfo", text:""} | 185 }, { |
182 ] | 186 xtype: "tbtext", |
183 } | 187 id:"userinfo", |
184 ], | 188 text:"" |
185 items: [ | 189 }, { |
190 xtype: 'box', | |
191 autoEl: { | |
192 tag: 'img', | |
193 src:'gfx/network-workgroup.png' | |
194 } | |
195 }, { | |
196 xtype: "tbtext", | |
197 id:"groupinfo", | |
198 text:"" | |
199 }] | |
200 }], | |
201 items: [{ | |
186 // Auswahl einer Abfrage. | 202 // Auswahl einer Abfrage. |
187 { | 203 xtype: 'queryselector', |
188 xtype: 'queryselector', | 204 id: 'queryselector', |
189 id: 'queryselector', | 205 margin: '0 0 10 0' |
190 margin: '0 0 10 0' | 206 }, { |
191 }, | 207 // Variables settings for the current selected sql statement. |
192 // Variables settings for the current selected sql statement. | 208 xtype: 'fieldset', |
193 { | 209 id: 'queryfilters', |
194 xtype: 'fieldset', | 210 title: 'Variablenbelegung', |
195 id: 'queryfilters', | 211 hidden: true, |
196 title: 'Variablenbelegung', | 212 items: [] |
197 hidden: true, | 213 }, { |
198 items: [] | 214 // Buttons to trigger the search. |
199 }, | 215 id: 'SearchBtnPanel', |
200 // Buttons to trigger the search. | 216 xtype: 'panel', |
201 { | 217 border: false, |
202 id: 'SearchBtnPanel', | 218 margin: '0 0 10 0', |
203 xtype: 'panel', | 219 items: [{ |
204 border: false, | 220 id: 'SearchBtn', |
205 margin: '0 0 10 0', | 221 text: 'Suchen', |
206 items: [ | 222 xtype: 'button', |
207 { | 223 margin: '0 10 0 0' |
208 id: 'SearchBtn', | 224 }, { |
209 text: 'Suchen', | 225 id: 'ResetBtn', |
210 xtype: 'button', | 226 text: 'Zurücksetzen', |
211 margin: '0 10 0 0' | 227 xtype: 'button' |
212 }, | 228 }], |
213 { | 229 hidden: false |
214 id: 'ResetBtn', | 230 }, { |
215 text: 'Zurücksetzen', | 231 // Resultlist for the query. |
216 xtype: 'button' | 232 id: 'result', |
217 } | 233 flex: 1, |
218 ], | 234 xtype: 'probenlist', |
219 hidden: false | 235 hidden: false |
220 | 236 }] |
221 }, | |
222 // Resultlist for the query. | |
223 { | |
224 id: 'result', | |
225 flex: 1, | |
226 xtype: 'probenlist', | |
227 hidden: false | |
228 } | |
229 ] | |
230 }]; | 237 }]; |
231 } | 238 } |
232 }); | 239 }); |