source: Dev/branches/rest-dojo-ui/client/rft/run.js @ 302

Last change on this file since 302 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
Line 
1require([
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/MenuBarLink',
28    'rft/ui/MenuLink',
29    'rft/ui/LineWithActionsWidget',
30    'rft/ui/QuestionWidget',
31    'rft/ui/TitleGroup',
32   
33    // pages -> load dynamically?
34    'rft/pages/questions',
35    'rft/pages/surveys',
36    'rft/pages/survey',
37    ],
38    function(win,parser,LoginDialog,dom,connect,auth,content) {
39        parser.parse();
40
41        var login = new LoginDialog().placeAt(win.body());
42        login.startup();
43
44        auth.restore()
45        .then(function(){
46            content.initial();
47        },function(){
48            login.show();
49        });
50
51        connect.connect(dom.byId('loginMenu'),'click',function(){
52            login.show();
53        });
54
55    });
Note: See TracBrowser for help on using the repository browser.