Last change
on this file since 260 was
260,
checked in by hendrikvanantwerpen, 13 years ago
|
- Clear LoginDialog? on show (in case of re-show).
- Allow to link nodes/widgets to rft.ui.Page members with data-rft-attach-point attribute.
- Allow arguments to a page to be passed with data-rft-props argument. Content loader rft.content sets this argument on the top node of a loaded page.
- Have longer cookie-lifetime and update cookie when session is restored. Allow session restore in API and client code.
- Moved startup Javascript to rft/run.js.
|
File size:
694 bytes
|
Line | |
---|
1 | require(['dojo/_base/window','dojo/parser', 'rft/ui/LoginDialog', |
---|
2 | 'dojo/dom', 'dojo/_base/connect', 'rft/auth', 'rft/content', |
---|
3 | 'dojo/domReady!', 'dijit/layout/ContentPane', 'dijit/MenuBar', |
---|
4 | 'dijit/MenuBarItem', 'rft/ui/MenuBarLink', 'rft/ui/Page'], |
---|
5 | function(win,parser,LoginDialog,dom,connect,auth,content) { |
---|
6 | parser.parse(); |
---|
7 | |
---|
8 | var login = new LoginDialog().placeAt(document.body); |
---|
9 | login.startup(); |
---|
10 | |
---|
11 | auth.restore() |
---|
12 | .then(function(user){ |
---|
13 | content.initial(); |
---|
14 | },function(){ |
---|
15 | login.show(); |
---|
16 | }); |
---|
17 | |
---|
18 | connect.connect(dom.byId('userinfo'),'click',function(){ |
---|
19 | login.show(); |
---|
20 | }); |
---|
21 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.