Ignore:
Timestamp:
07/27/12 14:52:36 (13 years ago)
Author:
hendrikvanantwerpen
Message:
  • Added description to survey properties form.
  • Added crude loading indicator to TabbedQuestionWidget?.
  • Organized run.js: dependencies in alpha order and only declaratively used widgets, removed other dependencies, they should be in the modules where they are used.
  • ElasticReadStore? and ElasticSearchFilteringSelect? was a mix of old dojo.declare/dojo.require and new AMD style. Changed it completely to AMD style (benefits builds later as well).
  • Changed questions view so questions without topics/categories show up as well in the view.
File:
1 edited

Legend:

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

    r375 r382  
    5454        "_id": "q4",
    5555        "title": "Rate your experience at your current employer from 1 to 10.",
    56         "categories": [
    57             "Respondent personals",
    58             "Professional background"
    59         ],
    60         "topic": "Work enjoyment",
    6156        "type": "Question"
    6257    },
     
    7469            },
    7570            "questions": {
    76                 "map": "function(doc){ if ( doc.type === 'Question' ) { for (var i = 0; i < doc.categories.length; i++) { emit([doc.categories[i],doc.topic],1); } } }",
     71                "map": "function(doc){ if ( doc.type === 'Question' ) { if ( doc.categories && doc.categories.length > 0 ) { for (var i = 0; i < doc.categories.length; i++) { emit([doc.categories[i],doc.topic || '[No topic]'],1); } } else { emit(['[No category]','[No topic]'],1); } } }",
    7772                "reduce": "function(keys,values) { return sum(values); }"
    7873            },
Note: See TracChangeset for help on using the changeset viewer.