Ignore:
Timestamp:
11/24/12 18:13:18 (12 years ago)
Author:
hendrikvanantwerpen
Message:

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:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/rest-dojo-ui/client/rft/run.js

    r410 r414  
    22    'dojo/_base/array',
    33    'dojo/parser',
     4    'rft/app/Content',
     5    'rft/app/Page',
    46    'rft/app/Router',
     7    'rft/ui/MainMenu',
    58    'rft/routes',
     9    'rft/store',
    610    'rft/stddeps',
    711    'dojo/domReady!'
    8 ],function(array,parser,router,routes) {
     12],function(array,parser,Content,Page,Router,MainMenu,routes,store) {
    913    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        }));
    1227    });
    13     router.startup();
    1428});
Note: See TracChangeset for help on using the changeset viewer.