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

Last change on this file since 281 was 281, checked in by hendrikvanantwerpen, 13 years ago
  • [Client] Removed local Dojo copy and pull in via svn:external.
  • [Client] Keep categories of questions in alphabetical order.
  • [Client] Added skeleton QuestionWidget? for different question types.
File size: 1.3 KB
Line 
1require([
2    'dojo/data/ObjectStore',
3    'dojo/store/JsonRest',
4    'dijit/MenuBar',
5    'dijit/MenuBarItem',
6    'dijit/PopupMenuBarItem',
7    'dijit/DropDownMenu',
8    'dijit/TitlePane',
9    'dijit/layout/ContentPane',
10    'dijit/layout/TabContainer',
11    'dijit/layout/AccordionContainer',
12    'dijit/form/Form',
13    'dijit/form/TextBox',
14    'dijit/form/Button',
15    'dijit/form/Textarea',
16    'dijit/form/ComboBox',
17    'dijit/form/Select',
18    'dojox/grid/DataGrid',
19    'dojox/widget/TitleGroup',
20    'rft/ui/MenuBarLink',
21    'rft/ui/MenuLink',
22    'rft/ui/LineWithActionsWidget',
23    'rft/ui/QuestionWidget',
24    'rft/ui/TitleGroup',
25    'rft/pages/questions' // could this be done dynamically?
26]);
27
28require(['dojo/_base/window','dojo/parser', 'rft/ui/LoginDialog',
29    'dojo/dom', 'dojo/_base/connect', 'rft/auth', 'rft/content',
30    'dojo/domReady!' ],
31    function(win,parser,LoginDialog,dom,connect,auth,content) {
32        parser.parse();
33
34        var login = new LoginDialog().placeAt(win.body());
35        login.startup();
36
37        auth.restore()
38        .then(function(){
39            content.initial();
40        },function(){
41            login.show();
42        });
43
44        connect.connect(dom.byId('loginMenu'),'click',function(){
45            login.show();
46        });
47
48    });
Note: See TracBrowser for help on using the repository browser.