Last change
on this file since 338 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
|
Rev | Line | |
---|
[263] | 1 | require([ |
---|
[288] | 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 |
---|
[281] | 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', |
---|
[263] | 18 | 'dijit/form/Form', |
---|
[274] | 19 | 'dijit/form/TextBox', |
---|
| 20 | 'dijit/form/Button', |
---|
| 21 | 'dijit/form/Textarea', |
---|
[292] | 22 | 'dijit/form/SimpleTextarea', |
---|
[281] | 23 | 'dijit/form/ComboBox', |
---|
| 24 | 'dijit/form/Select', |
---|
[263] | 25 | 'dojox/grid/DataGrid', |
---|
[281] | 26 | 'dojox/widget/TitleGroup', |
---|
[311] | 27 | 'rft/ui/MainMenu', |
---|
[263] | 28 | 'rft/ui/MenuBarLink', |
---|
[274] | 29 | 'rft/ui/MenuLink', |
---|
[311] | 30 | 'rft/ui/Notifications', |
---|
[275] | 31 | 'rft/ui/LineWithActionsWidget', |
---|
[281] | 32 | 'rft/ui/QuestionWidget', |
---|
| 33 | 'rft/ui/TitleGroup', |
---|
[288] | 34 | |
---|
| 35 | // pages -> load dynamically? |
---|
[292] | 36 | 'rft/pages/questions', |
---|
| 37 | 'rft/pages/surveys', |
---|
| 38 | 'rft/pages/survey', |
---|
| 39 | ], |
---|
[260] | 40 | function(win,parser,LoginDialog,dom,connect,auth,content) { |
---|
| 41 | parser.parse(); |
---|
| 42 | |
---|
[263] | 43 | var login = new LoginDialog().placeAt(win.body()); |
---|
[260] | 44 | login.startup(); |
---|
| 45 | |
---|
| 46 | auth.restore() |
---|
[263] | 47 | .then(function(){ |
---|
[260] | 48 | content.initial(); |
---|
| 49 | },function(){ |
---|
| 50 | login.show(); |
---|
| 51 | }); |
---|
| 52 | |
---|
[274] | 53 | connect.connect(dom.byId('loginMenu'),'click',function(){ |
---|
[260] | 54 | login.show(); |
---|
| 55 | }); |
---|
[274] | 56 | |
---|
[260] | 57 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.