Last change
on this file was
492,
checked in by hendrikvanantwerpen, 11 years ago
|
- Enable/disable buttons on content change.
- One place to do date formatting, because it was going wrong again.
- Serialize questions in survey properly.
- _ComplexValueMixin consumes submit events, but does trigger outer
forms if present.
- Trigger dialog show/hide for login only after previous effect is
finished.
- Check that documents are actually valid, not just that validator
returned a result.
- Validate email and timestamp formats.
- Prepared for live runs.
|
File size:
814 bytes
|
Rev | Line | |
---|
[443] | 1 | define([ |
---|
[490] | 2 | "./Content", |
---|
[491] | 3 | "./Router", |
---|
[490] | 4 | "dijit/_TemplatedMixin", |
---|
| 5 | "dijit/_WidgetsInTemplateMixin", |
---|
| 6 | "dijit/layout/BorderContainer", |
---|
| 7 | "dojo/_base/declare", |
---|
[491] | 8 | "dojo/_base/lang" |
---|
| 9 | ], function(Content, Router, _TemplatedMixin, _WidgetsInTemplateMixin, BorderContainer, declare, lang) { |
---|
[490] | 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 | }, |
---|
[491] | 15 | go: lang.hitch(Router,'go'), |
---|
[490] | 16 | notify: lang.hitch(Content,'notify'), |
---|
| 17 | markDirty: lang.hitch(Content,'markDirty'), |
---|
[492] | 18 | markClean: lang.hitch(Content,'markClean'), |
---|
| 19 | isDirty: lang.hitch(Content,'isDirty') |
---|
[443] | 20 | }); |
---|
[490] | 21 | return Page; |
---|
| 22 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.