Changeset 406 for Dev/branches/rest-dojo-ui/client/config
- Timestamp:
- 09/03/12 18:14:37 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui/client/config/docs.json
r386 r406 19 19 } 20 20 }, 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 },58 21 "rft/_design/default": { 59 22 "__configAction": "replace", 60 23 "_id": "_design/default", 61 24 "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.'});} }", 63 26 "views": { 64 27 "by_type": {
Note: See TracChangeset
for help on using the changeset viewer.