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/surveys.js

    r414 r415  
    2323                Router.go('/survey/'+store.getIdentity(survey));
    2424            },function(err){
    25                 Content.notify(err.reason,'error');
     25                Content.notify(err,'error');
    2626            });
    2727        },
     
    3333                self.refreshPublished();
    3434            },function(err){
    35                 Content.notify(err.reason,'error');
     35                Content.notify(err,'error');
    3636            });
    3737        },
     
    4242                self.refreshDrafts();
    4343            },function(err){
    44                 Content.notify(err.reason,'error');
     44                Content.notify(err,'error');
    4545            });
    4646        },
     
    5252        },
    5353        _onRunSurvey:function(survey){
    54 
     54            this.surveyRunDialog.show();
    5555        },
    5656        refresh: function() {
Note: See TracChangeset for help on using the changeset viewer.