Mercurial > lada > lada-client
comparison app.js @ 117:5ef91e9ac7b1
Clean up code and improve comments.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Fri, 21 Jun 2013 10:08:19 +0200 |
parents | c4f97a5a9939 |
children | f2579cadaee8 |
comparison
equal
deleted
inserted
replaced
116:88922e579002 | 117:5ef91e9ac7b1 |
---|---|
1 Ext.application({ | 1 Ext.application({ |
2 name: 'Lada', | 2 name: 'Lada', |
3 // Setting this variable to true should trigger loading the Viewport.js | 3 // Setting up translations. This is done using a ext-plgin which can be |
4 // file which sets ob the viewport. But this does not happen. | 4 // found on https://github.com/elmasse/Ext.i18n.Bundle |
5 requires: ['Ext.i18n.Bundle'], | 5 requires: ['Ext.i18n.Bundle'], |
6 bundle: { | 6 bundle: { |
7 bundle: 'Lada', | 7 bundle: 'Lada', |
8 lang: 'de-DE', | 8 lang: 'de-DE', |
9 path: 'resources', | 9 path: 'resources', |
10 noCache: true | 10 noCache: true |
11 }, | 11 }, |
12 // Setting this variable to true triggers loading the Viewport.js | |
13 // file which sets ob the viewport. | |
12 autoCreateViewport: true, | 14 autoCreateViewport: true, |
15 | |
16 | |
17 // Start the application. | |
13 launch: function() { | 18 launch: function() { |
14 // Start the application. | |
15 console.log('Launching the application'); | 19 console.log('Launching the application'); |
16 }, | 20 }, |
21 | |
17 // Define the controllers of the application. They will be initialized | 22 // Define the controllers of the application. They will be initialized |
18 // first before the application "launch" function is called. | 23 // first before the application "launch" function is called. |
19 controllers: [ | 24 controllers: [ |
20 'Proben', | 25 'Proben', |
21 'Kommentare', | 26 'Kommentare', |
22 'Sql', | 27 'Sql', |
23 'Zusatzwerte', | 28 'Zusatzwerte', |
24 'Orte', | 29 'Orte', |
25 'Messungen' | 30 'Messungen' |
26 | |
27 ] | 31 ] |
28 }); | 32 }); |