Last change
on this file since 292 was
292,
checked in by hendrikvanantwerpen, 13 years ago
|
[Client] Added surveys list and survey details skeleton pages.
[Client] Changed method of passing parameters to pages. This still feels clumsy, because we're working against Dojo a bit with this.
[Server] Integrated REST resources for collections and objects, since they shared more than they differed.
|
File size:
1.4 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', |
---|
[263] | 27 | 'rft/ui/MenuBarLink', |
---|
[274] | 28 | 'rft/ui/MenuLink', |
---|
[275] | 29 | 'rft/ui/LineWithActionsWidget', |
---|
[281] | 30 | 'rft/ui/QuestionWidget', |
---|
| 31 | 'rft/ui/TitleGroup', |
---|
[288] | 32 | |
---|
| 33 | // pages -> load dynamically? |
---|
[292] | 34 | 'rft/pages/questions', |
---|
| 35 | 'rft/pages/surveys', |
---|
| 36 | 'rft/pages/survey', |
---|
| 37 | ], |
---|
[260] | 38 | function(win,parser,LoginDialog,dom,connect,auth,content) { |
---|
| 39 | parser.parse(); |
---|
| 40 | |
---|
[263] | 41 | var login = new LoginDialog().placeAt(win.body()); |
---|
[260] | 42 | login.startup(); |
---|
| 43 | |
---|
| 44 | auth.restore() |
---|
[263] | 45 | .then(function(){ |
---|
[260] | 46 | content.initial(); |
---|
| 47 | },function(){ |
---|
| 48 | login.show(); |
---|
| 49 | }); |
---|
| 50 | |
---|
[274] | 51 | connect.connect(dom.byId('loginMenu'),'click',function(){ |
---|
[260] | 52 | login.show(); |
---|
| 53 | }); |
---|
[274] | 54 | |
---|
[260] | 55 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.