Ignore:
Timestamp:
02/14/12 18:22:25 (13 years ago)
Author:
hendrikvanantwerpen
Message:
  • 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:
1 moved

Legend:

Unmodified
Added
Removed
  • Dev/branches/rest-dojo-ui/client/rft/run.js

    r258 r260  
    1 define(['require'], function(require) {
    2     return {};
    3 });
     1require(['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 TracChangeset for help on using the changeset viewer.