source: Dev/trunk/src/client/qed-client/app/Page.js @ 512

Last change on this file since 512 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
Line 
1define([
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        isDirty: lang.hitch(Content,'isDirty')
20    });
21    return Page;
22});
Note: See TracBrowser for help on using the repository browser.