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:
816 bytes
|
Rev | Line | |
---|
[257] | 1 | <div data-dojo-type="rft.ui.Page"> |
---|
[260] | 2 | <script type="dojo/method" data-dojo-event="init"> |
---|
| 3 | var that = this; |
---|
[257] | 4 | require(['dojo/_base/json','dojo/dom','dojo/store/JsonRest','dojo/domReady!'], |
---|
| 5 | function(json,dom,JsonRest){ |
---|
| 6 | var store = new JsonRest({ |
---|
| 7 | target:"../server/api.php/data/Session/", |
---|
| 8 | idProperty: 'uid' |
---|
| 9 | }); |
---|
[260] | 10 | store.get(that.args.uid).then(function(obj){ |
---|
| 11 | that.page_session_form.innerHTML = json.toJson(obj); |
---|
[257] | 12 | }); |
---|
| 13 | }); |
---|
| 14 | </script> |
---|
[260] | 15 | <div class="largeFrame" style="width: 400px;"> |
---|
[257] | 16 | <div class="largeTitle">Session</div> |
---|
| 17 | <div class="content"> |
---|
[260] | 18 | <div data-rft-attach-point="page_session_form"></div> |
---|
[257] | 19 | </div> |
---|
| 20 | </div> |
---|
| 21 | |
---|
| 22 | </div> |
---|
Note: See
TracBrowser
for help on using the repository browser.