Changeset 414 for Dev/branches/rest-dojo-ui/client/rft/run.js
- Timestamp:
- 11/24/12 18:13:18 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui/client/rft/run.js
r410 r414 2 2 'dojo/_base/array', 3 3 'dojo/parser', 4 'rft/app/Content', 5 'rft/app/Page', 4 6 'rft/app/Router', 7 'rft/ui/MainMenu', 5 8 'rft/routes', 9 'rft/store', 6 10 'rft/stddeps', 7 11 'dojo/domReady!' 8 ],function(array,parser, router,routes) {12 ],function(array,parser,Content,Page,Router,MainMenu,routes,store) { 9 13 parser.parse(); 10 array.forEach(routes,function(route){ 11 router.register(route); 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 })); 12 27 }); 13 router.startup();14 28 });
Note: See TracChangeset
for help on using the changeset viewer.