Ignore:
Timestamp:
08/08/12 13:33:58 (13 years ago)
Author:
hendrikvanantwerpen
Message:

Prevent duplication of questions on refresh in survey page.
Allow dragging by top bar only for QuestionEditorPreviewItems?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/rest-dojo-ui/client/rft/pages/survey.js

    r389 r392  
    2727                    .then(lang.hitch(this,function(obj){
    2828                        this.survey = obj;
     29                        store.query(null,{keys:this.survey.questions,include_docs:true})
     30                        .forEach(lang.hitch(this.questionList,'appendItem'));
    2931                        this.refresh();
    3032                    }));
     
    6668                this.titleNode.innerHTML = this.survey.title || "(set title in properties)";
    6769                this.propertiesForm.set('value',this.survey);
    68                 store.query(null,{keys:this.survey.questions,include_docs:true})
    69                 .forEach(lang.hitch(this.questionList,'appendItem'));
    7070            },
    7171            _onShowProperties: function(evt) {
Note: See TracChangeset for help on using the changeset viewer.