Ignore:
Timestamp:
09/03/12 18:14:37 (13 years ago)
Author:
hendrikvanantwerpen
Message:

Lots of small fixes.

Make it possible to read survey answers (when a question code is
provided), it is now displayed in place of the survey. More to come.

Some whitespace fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/rest-dojo-ui/client/config/docs.json

    r386 r406  
    1919        }
    2020    },
    21     "rft/q1": {
    22         "__configAction": "update",
    23         "_id": "q1",
    24         "title": "How long have you worked here?",
    25         "categories": [
    26             "Professional background"
    27         ],
    28         "topic": "Work experience",
    29         "type": "Question"
    30     },
    31     "rft/q2": {
    32         "__configAction": "update",
    33         "_id": "q2",
    34         "title": "How many years have you been employed here?",
    35         "categories": [
    36             "Respondent personals",
    37             "Professional background"
    38         ],
    39         "topic": "Work experience",
    40         "type": "Question"
    41     },
    42     "rft/q3": {
    43         "__configAction": "update",
    44         "_id": "q3",
    45         "title": "Have you worked here longer than 10 years?",
    46         "categories": [
    47             "Respondent personals"
    48         ],
    49         "topic": "Work experience",
    50         "type": "Question"
    51     },
    52     "rft/q4": {
    53         "__configAction": "update",
    54         "_id": "q4",
    55         "title": "Rate your experience at your current employer from 1 to 10.",
    56         "type": "Question"
    57     },
    5821    "rft/_design/default": {
    5922        "__configAction": "replace",
    6023        "_id": "_design/default",
    6124        "language": "javascript",
    62         "validate_doc_update": "function(newDoc, oldDoc, userCtx, secObj) { if (oldDoc && oldDoc.published) { throw({forbidden: 'Published documents cannot be modified.'}); } }",
     25        "validate_doc_update": "function(newDoc, oldDoc, userCtx, secObj) { if(oldDoc&&oldDoc.published){throw({forbidden:'Published documents cannot be modified.'});} if (!newDoc.type){throw({forbidden:'Documents must have a type field.'});} }",
    6326        "views": {
    6427            "by_type": {
Note: See TracChangeset for help on using the changeset viewer.