Ignore:
Timestamp:
12/04/12 16:29:49 (12 years ago)
Author:
hendrikvanantwerpen
Message:

Support data validation and increase dendency separation.

Added json-schema validation before documents are saved. Acts both as
a safe-guard and as a reference of the data model.

Added directory for server related material. For now it contains scripts
to configure CouchDB and check validity of documents against the schema.

Started separating out parts that depend on the data model from parts
that do not.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/rest-dojo-ui/client/rft/pages/viewSurvey.js

    r410 r415  
    77    '../store',
    88    '../app/Page',
    9     '../ui/content/ContentWidgetFactory',
     9    '../ui/model/QuestionWidgetFactory',
    1010    'dojo/text!./viewSurvey.html'
    11 ],function(array,declare,Deferred,event,lang,store,Page,ContentWidgetFactory,template){
     11],function(array,declare,Deferred,event,lang,store,Page,QuestionWidgetFactory,template){
    1212    return declare([Page],{
    1313        templateString: template,
     
    3535                    this.titleNode.innerHTML = survey.title +
    3636                            (this.options.preview?' [preview]':'');
    37                     var f = new ContentWidgetFactory();
     37                    var f = new QuestionWidgetFactory();
    3838                    this.survey = survey;
    3939                    store.query(null,{keys:this.survey.questions,include_docs:true})
Note: See TracChangeset for help on using the changeset viewer.