Ignore:
Timestamp:
03/09/14 14:23:42 (11 years ago)
Author:
hendrikvanantwerpen
Message:
  • 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:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/src/client/qed-client/model/classes/surveyRuns.js

    r487 r492  
    22    "./_Class",
    33    "./surveys",
    4     "dojo/_base/declare",
    5     "dojo/date/stamp"
    6 ], function(_Class, surveys, declare, stamp) {
     4    "dojo/_base/declare"
     5], function(_Class, surveys, declare) {
    76
    87    var SurveyRuns = declare([_Class],{
     
    2120        _deserialize: function(obj) {
    2221            if (obj.endDate) {
    23                 obj.endDate = stamp.fromISOString(obj.endDate);
     22                obj.endDate = this._parseDate(obj.endDate);
    2423            }
    2524            if (obj.startDate) {
    26                 obj.startDate = stamp.fromISOString(obj.startDate);
     25                obj.startDate = this._parseDate(obj.startDate);
    2726            }
    2827            if (obj.survey) {
     
    3231        _serialize: function(obj) {
    3332            if (obj.endDate) {
    34                 obj.endDate = stamp.toISOString(obj.endDate);
     33                obj.endDate = this._formatDate(obj.endDate);
    3534            }
    3635            if (obj.startDate) {
    37                 obj.startDate = stamp.toISOString(obj.startDate);
     36                obj.startDate = this._formatDate(obj.startDate);
    3837            }
    3938            if (obj.survey) {
Note: See TracChangeset for help on using the changeset viewer.