Last change
on this file since 419 was
419,
checked in by hendrikvanantwerpen, 12 years ago
|
Also update module ids and include README with file layout description.
|
File size:
733 bytes
|
Rev | Line | |
---|
[263] | 1 | require([ |
---|
[407] | 2 | 'dojo/_base/array', |
---|
[382] | 3 | 'dojo/parser', |
---|
[419] | 4 | 'qed/app/Content', |
---|
| 5 | 'qed/app/Page', |
---|
| 6 | 'qed/app/Router', |
---|
| 7 | 'qed/ui/MainMenu', |
---|
| 8 | 'qed/routes', |
---|
| 9 | 'qed/store', |
---|
| 10 | 'qed/stddeps', |
---|
[399] | 11 | 'dojo/domReady!' |
---|
[414] | 12 | ],function(array,parser,Content,Page,Router,MainMenu,routes,store) { |
---|
[399] | 13 | parser.parse(); |
---|
[414] | 14 | |
---|
| 15 | store.info() |
---|
| 16 | .then(function(){ |
---|
| 17 | new MainMenu({},"menu").startup(); |
---|
| 18 | array.forEach(routes,function(route){ |
---|
| 19 | Router.register(route); |
---|
| 20 | }); |
---|
| 21 | Router.startup(); |
---|
| 22 | },function(){ |
---|
| 23 | Content.startup(); |
---|
| 24 | Content.set(new Page({ |
---|
| 25 | templateString: "<div>Application database is not properly configured. Contact your system administrator.</div>" |
---|
| 26 | })); |
---|
[399] | 27 | }); |
---|
| 28 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.