Last change
on this file since 461 was
457,
checked in by hendrikvanantwerpen, 12 years ago
|
Improve SurveyRun? form and drop Fieldsets as widgets.
- Improved console message on Page change fail.
- Renamed some widgets, dropped having Fieldset widgets.
- Put constraint that survey run start date cannot be before end date.
- Link to survey from survey summary,
|
File size:
509 bytes
|
Line | |
---|
1 | define([ |
---|
2 | "../../widgets/_ComplexValueWidget", |
---|
3 | "dojo/_base/declare", |
---|
4 | "dojo/date", |
---|
5 | "dojo/text!./templates/SurveyRunWidget.html" |
---|
6 | ], function(_ComplexValueWidget, declare, date, template) { |
---|
7 | return declare([_ComplexValueWidget],{ |
---|
8 | templateString: template, |
---|
9 | postCreate: function() { |
---|
10 | var endDateBox = this.endDateBox; |
---|
11 | this.startDateBox.on('change', function(value){ |
---|
12 | endDateBox.constraints.min = value; |
---|
13 | }); |
---|
14 | } |
---|
15 | }); |
---|
16 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.