Last change
on this file since 506 was
506,
checked in by hendrikvanantwerpen, 11 years ago
|
- Added subcodes to schema and config widgets.
- Disallow empty strings in schema and strip objects before sending them
to the server.
- Finally managed proper change events in lists and complexvalues.
|
File size:
969 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.own(this.startDateBox.on('change', function(value){ |
---|
12 | endDateBox.constraints.min = value; |
---|
13 | })); |
---|
14 | }, |
---|
15 | _getValueAttr: function() { |
---|
16 | var value = this.inherited(arguments); |
---|
17 | value.respondentCanDeleteOwnResponse = |
---|
18 | value.respondentCanDeleteOwnResponse.length > 0; |
---|
19 | return value; |
---|
20 | }, |
---|
21 | _setValueAttr: function(value) { |
---|
22 | value.respondentCanDeleteOwnResponse = |
---|
23 | value.respondentCanDeleteOwnResponse ? ["on"] : []; |
---|
24 | this.inherited(arguments); |
---|
25 | } |
---|
26 | }); |
---|
27 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.