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/ui/QuestionEditorPreviewItem.js

    r414 r415  
    1010    'dijit/_WidgetBase',
    1111    'dijit/_WidgetsInTemplateMixin',
    12     './content/ContentWidgetFactory',
     12    './model/QuestionWidgetFactory',
    1313    'dojo/text!./templates/QuestionEditorPreviewItem.html'
    1414], function(
     
    2323    _WidgetBase,
    2424    _WidgetsInTemplateMixin,
    25     ContentWidgetFactory,
     25    QuestionWidgetFactory,
    2626    template
    2727){
     
    5555        },
    5656        _showViewWidget: function() {
    57             var factory = new ContentWidgetFactory();
     57            var factory = new QuestionWidgetFactory();
    5858            this.innerWidget = factory.createViewWidget( this.item );
    5959            if ( this.innerWidget !== null ) {
     
    6565        },
    6666        _showEditWidget: function() {
    67             var factory = new ContentWidgetFactory();
     67            var factory = new QuestionWidgetFactory();
    6868            this.innerWidget = factory.createEditWidget( this.item );
    6969            if ( this.innerWidget !== null ) {
Note: See TracChangeset for help on using the changeset viewer.