Ignore:
Timestamp:
12/16/12 20:07:35 (12 years ago)
Author:
hendrikvanantwerpen
Message:

We can store answers for surveys now!

Introduces SurveyRun?, which can be edited. Workflow not quite clear yet. A
running survey can be accessed to leave a response. When the response
has an ID, it is loaded (used for closed surveys and continuations). A
researcher cannot create responses yet. He should also be able to add
comments to responses (that he creates).

Introduced caching of store requests.

Factored out path matching and formatting.

Put object creation in separate classes, to localize model/storage
dependency. Not consistent at the moment.

Location:
Dev/branches/rest-dojo-ui/client/qed/widgets
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/rest-dojo-ui/client/qed/widgets/list/List.js

    r407 r420  
    6363
    6464        getItems: function() {
    65             return this.source.getAllNodes()
    66             .map(function(node){
    67                 return this.source.getItem(node.id).data;
     65            var items = [];
     66            this.source.getAllNodes()
     67            .forEach(function(node){
     68                items.push(this.source.getItem(node.id).data);
    6869            },this);
     70            return items;
    6971        },
    7072
Note: See TracChangeset for help on using the changeset viewer.