Last change
on this file since 263 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
|
Rev | Line | |
---|
[263] | 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 | |
---|
[260] | 13 | require(['dojo/_base/window','dojo/parser', 'rft/ui/LoginDialog', |
---|
| 14 | 'dojo/dom', 'dojo/_base/connect', 'rft/auth', 'rft/content', |
---|
[263] | 15 | 'dojo/domReady!', ], |
---|
[260] | 16 | function(win,parser,LoginDialog,dom,connect,auth,content) { |
---|
| 17 | parser.parse(); |
---|
| 18 | |
---|
[263] | 19 | var login = new LoginDialog().placeAt(win.body()); |
---|
[260] | 20 | login.startup(); |
---|
| 21 | |
---|
| 22 | auth.restore() |
---|
[263] | 23 | .then(function(){ |
---|
[260] | 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.