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

Last change on this file since 274 was 274, checked in by hendrikvanantwerpen, 13 years ago
  • [Client] Moved pages in subtree of rft/, allowing controllers next to them.
  • [Client] Created questions page, gives overview and allows adding.
  • [Client] Page controllers inherit from _Page, because the previous mechanism w

asn't working.

  • [Client] Added new user registration.
  • [Server] Changed user passwords to passwordHash/passwordSalt combination.
  • [Server] Added simple object marshalling and unmarshalling to preserve types.
  • [Server] Added ResearchToolObjectInterface? with static create() method. Implemented for all model classes.
File size: 1.1 KB
Line 
1require([
2    'dijit/form/Form',
3    'dijit/form/TextBox',
4    'dijit/form/Button',
5    'dijit/form/Textarea',
6    'dojo/store/JsonRest',
7    'dojo/data/ObjectStore',
8    'dojox/grid/DataGrid',
9    'dijit/layout/ContentPane',
10    'dijit/layout/TabContainer',
11    'dijit/layout/AccordionContainer',
12    'dijit/MenuBar',
13    'dijit/MenuBarItem',
14    'dijit/PopupMenuBarItem',
15    'dijit/DropDownMenu',
16    'rft/ui/MenuBarLink',
17    'rft/ui/MenuLink',
18    'rft/ui/QuestionWidget',
19    'rft/pages/questions' // could this be done dynamically?
20]);
21
22require(['dojo/_base/window','dojo/parser', 'rft/ui/LoginDialog',
23    'dojo/dom', 'dojo/_base/connect', 'rft/auth', 'rft/content',
24    'dojo/domReady!' ],
25    function(win,parser,LoginDialog,dom,connect,auth,content) {
26        parser.parse();
27
28        var login = new LoginDialog().placeAt(win.body());
29        login.startup();
30
31        auth.restore()
32        .then(function(){
33            content.initial();
34        },function(){
35            login.show();
36        });
37
38        connect.connect(dom.byId('loginMenu'),'click',function(){
39            login.show();
40        });
41
42    });
Note: See TracBrowser for help on using the repository browser.