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
RevLine 
[263]1require([
[281]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',
[263]12    'dijit/form/Form',
[274]13    'dijit/form/TextBox',
14    'dijit/form/Button',
15    'dijit/form/Textarea',
[281]16    'dijit/form/ComboBox',
17    'dijit/form/Select',
[263]18    'dojox/grid/DataGrid',
[281]19    'dojox/widget/TitleGroup',
[263]20    'rft/ui/MenuBarLink',
[274]21    'rft/ui/MenuLink',
[275]22    'rft/ui/LineWithActionsWidget',
[281]23    'rft/ui/QuestionWidget',
24    'rft/ui/TitleGroup',
[274]25    'rft/pages/questions' // could this be done dynamically?
[263]26]);
27
[260]28require(['dojo/_base/window','dojo/parser', 'rft/ui/LoginDialog',
29    'dojo/dom', 'dojo/_base/connect', 'rft/auth', 'rft/content',
[274]30    'dojo/domReady!' ],
[260]31    function(win,parser,LoginDialog,dom,connect,auth,content) {
32        parser.parse();
33
[263]34        var login = new LoginDialog().placeAt(win.body());
[260]35        login.startup();
36
37        auth.restore()
[263]38        .then(function(){
[260]39            content.initial();
40        },function(){
41            login.show();
42        });
43
[274]44        connect.connect(dom.byId('loginMenu'),'click',function(){
[260]45            login.show();
46        });
[274]47
[260]48    });
Note: See TracBrowser for help on using the repository browser.