Last change
on this file since 264 was
263,
checked in by hendrikvanantwerpen, 13 years ago
|
- [Client] Finished page framework. See rft/ui/content.js or test files for details.
- [Client] Allow login by pressing Enter.
- [API] On exception include details in json response.
- [Server Use Exceptions when save() fails, iso return values.
|
File size:
840 bytes
|
Line | |
---|
1 | require([ |
---|
2 | 'dijit/form/Form', |
---|
3 | 'dojo/store/JsonRest', |
---|
4 | 'dojo/data/ObjectStore', |
---|
5 | 'dojox/grid/DataGrid', |
---|
6 | 'dijit/layout/ContentPane', |
---|
7 | 'dijit/layout/TabContainer', |
---|
8 | 'dijit/MenuBar', |
---|
9 | 'dijit/MenuBarItem', |
---|
10 | 'rft/ui/MenuBarLink', |
---|
11 | ]); |
---|
12 | |
---|
13 | require(['dojo/_base/window','dojo/parser', 'rft/ui/LoginDialog', |
---|
14 | 'dojo/dom', 'dojo/_base/connect', 'rft/auth', 'rft/content', |
---|
15 | 'dojo/domReady!', ], |
---|
16 | function(win,parser,LoginDialog,dom,connect,auth,content) { |
---|
17 | parser.parse(); |
---|
18 | |
---|
19 | var login = new LoginDialog().placeAt(win.body()); |
---|
20 | login.startup(); |
---|
21 | |
---|
22 | auth.restore() |
---|
23 | .then(function(){ |
---|
24 | content.initial(); |
---|
25 | },function(){ |
---|
26 | login.show(); |
---|
27 | }); |
---|
28 | |
---|
29 | connect.connect(dom.byId('userinfo'),'click',function(){ |
---|
30 | login.show(); |
---|
31 | }); |
---|
32 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.