Ignore:
Timestamp:
06/10/13 01:07:16 (12 years ago)
Author:
hendrikvanantwerpen
Message:

Save answers, improved response page and question widgets.

  • Warn if _ComplexValueMixin is not pout on a form element, to prevent 'name' collisions. Changed all depending widgets to <form>'s.
  • Fixed names for question widgets to actually save answers.
  • Fixed and improved response page.
  • Fixed names in MultipleChoice? widget, which behaves different for radio and check.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/src/client/qed-client/model/widgets/SurveyRenderWidget.js

    r457 r461  
    2222            this.survey = survey;
    2323            var f = new QuestionWidgetFactory();
    24             array.forEach(Survey.Questions.get(this.survey),function(question){
    25                 array.forEach(question.content || [],function(item,index){
     24            array.forEach(Survey.Questions.get(this.survey),function(question,question_index){
     25                array.forEach(question.content || [], function(item,item_index){
    2626                    // The dot causes values to be grouped in an object!
    27                     item.code = question.code.toString()+'.'+index.toString();
    2827                    var w = f.createViewWidget(item);
    2928                    if ( w !== null ) {
     29                        w.name = question_index.toString()+'/'+question.code.toString()+'.'+item_index.toString();
    3030                        w.placeAt(this.domNode);
    3131                    }
Note: See TracChangeset for help on using the changeset viewer.