Last change
on this file since 491 was
491,
checked in by hendrikvanantwerpen, 11 years ago
|
- Include _ObjectPage this time.
- Hash replace doesn't reload page.
- Widget in dialog has name to actually give results.
|
File size:
766 bytes
|
Line | |
---|
1 | define([ |
---|
2 | "./Content", |
---|
3 | "./Router", |
---|
4 | "dijit/_TemplatedMixin", |
---|
5 | "dijit/_WidgetsInTemplateMixin", |
---|
6 | "dijit/layout/BorderContainer", |
---|
7 | "dojo/_base/declare", |
---|
8 | "dojo/_base/lang" |
---|
9 | ], function(Content, Router, _TemplatedMixin, _WidgetsInTemplateMixin, BorderContainer, declare, lang) { |
---|
10 | var Page = declare([BorderContainer,_TemplatedMixin,_WidgetsInTemplateMixin],{ |
---|
11 | templateString: '<div>Empty page.</div>', |
---|
12 | die: function(msg) { |
---|
13 | Content.set(new Page({templateString:'<div>Error: '+msg+'</div>'})); |
---|
14 | }, |
---|
15 | go: lang.hitch(Router,'go'), |
---|
16 | notify: lang.hitch(Content,'notify'), |
---|
17 | markDirty: lang.hitch(Content,'markDirty'), |
---|
18 | markClean: lang.hitch(Content,'markClean') |
---|
19 | }); |
---|
20 | return Page; |
---|
21 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.