Last change
on this file since 340 was
311,
checked in by hendrikvanantwerpen, 13 years ago
|
[Client] Use toaster to show errors from server
[Client] Create widget for mainmenu, cleaner loading of index.html now.
[Server] Renamed answerset datetime to more meaningful creationdate
|
File size:
1.5 KB
|
Line | |
---|
1 | require([ |
---|
2 | // functions required for run |
---|
3 | 'dojo/_base/window','dojo/parser', 'rft/ui/LoginDialog', |
---|
4 | 'dojo/dom', 'dojo/_base/connect', 'rft/auth', 'rft/content', |
---|
5 | 'dojo/domReady!', |
---|
6 | |
---|
7 | // general widgets |
---|
8 | 'dojo/data/ObjectStore', |
---|
9 | 'dojo/store/JsonRest', |
---|
10 | 'dijit/MenuBar', |
---|
11 | 'dijit/MenuBarItem', |
---|
12 | 'dijit/PopupMenuBarItem', |
---|
13 | 'dijit/DropDownMenu', |
---|
14 | 'dijit/TitlePane', |
---|
15 | 'dijit/layout/ContentPane', |
---|
16 | 'dijit/layout/TabContainer', |
---|
17 | 'dijit/layout/AccordionContainer', |
---|
18 | 'dijit/form/Form', |
---|
19 | 'dijit/form/TextBox', |
---|
20 | 'dijit/form/Button', |
---|
21 | 'dijit/form/Textarea', |
---|
22 | 'dijit/form/SimpleTextarea', |
---|
23 | 'dijit/form/ComboBox', |
---|
24 | 'dijit/form/Select', |
---|
25 | 'dojox/grid/DataGrid', |
---|
26 | 'dojox/widget/TitleGroup', |
---|
27 | 'rft/ui/MainMenu', |
---|
28 | 'rft/ui/MenuBarLink', |
---|
29 | 'rft/ui/MenuLink', |
---|
30 | 'rft/ui/Notifications', |
---|
31 | 'rft/ui/LineWithActionsWidget', |
---|
32 | 'rft/ui/QuestionWidget', |
---|
33 | 'rft/ui/TitleGroup', |
---|
34 | |
---|
35 | // pages -> load dynamically? |
---|
36 | 'rft/pages/questions', |
---|
37 | 'rft/pages/surveys', |
---|
38 | 'rft/pages/survey', |
---|
39 | ], |
---|
40 | function(win,parser,LoginDialog,dom,connect,auth,content) { |
---|
41 | parser.parse(); |
---|
42 | |
---|
43 | var login = new LoginDialog().placeAt(win.body()); |
---|
44 | login.startup(); |
---|
45 | |
---|
46 | auth.restore() |
---|
47 | .then(function(){ |
---|
48 | content.initial(); |
---|
49 | },function(){ |
---|
50 | login.show(); |
---|
51 | }); |
---|
52 | |
---|
53 | connect.connect(dom.byId('loginMenu'),'click',function(){ |
---|
54 | login.show(); |
---|
55 | }); |
---|
56 | |
---|
57 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.