source: Dev/branches/rest-dojo-ui/client/rft/run.js @ 415

Last change on this file since 415 was 414, checked in by hendrikvanantwerpen, 12 years ago

Small issues for db name, widgets, startup.

Don't start application when database is not configured correctly.
Refactored edit widgets to use DefaultEdit?.
Fixed bug in getItems of Lists.
Renamed database to 'qed'.

File size: 733 bytes
RevLine 
[263]1require([
[407]2    'dojo/_base/array',
[382]3    'dojo/parser',
[414]4    'rft/app/Content',
5    'rft/app/Page',
[410]6    'rft/app/Router',
[414]7    'rft/ui/MainMenu',
[407]8    'rft/routes',
[414]9    'rft/store',
[399]10    'rft/stddeps',
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.