source: Dev/branches/rest-dojo-ui/client/qed/main-admin.js @ 421

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

Show responses with links in SurveyRun? overview.

File size: 739 bytes
Line 
1require([
2    'dojo/_base/array',
3    'dojo/parser',
4    'qed/app/Content',
5    'qed/app/Page',
6    'qed/app/Router',
7    'qed/ui/MainMenu',
8    'qed/routes-admin',
9    'qed/store',
10    'qed/stddeps',
11    'dojo/domReady!'
12],function(array,parser,Content,Page,Router,MainMenu,routes,store) {
13    parser.parse();
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        }));
27    });
28});
Note: See TracBrowser for help on using the repository browser.