Ignore:
Timestamp:
12/09/12 16:49:22 (12 years ago)
Author:
hendrikvanantwerpen
Message:

Put all model dependent code in one place. More separation of general and domain code.

File:
1 edited

Legend:

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

    r416 r417  
    88    '../store',
    99    '../app/Page',
    10     '../ui/lists/QuestionListView',
    11     '../ui/TabbedQuestionBrowser',
    12     'dojo/text!./survey.html'
     10    '../model/widgets/QuestionListView',
     11    '../model/widgets/TabbedQuestionBrowser',
     12    'dojo/text!./templates/survey.html'
    1313],function(array,declare,Deferred,event,lang,Router,store,Page,
    1414         QuestionListView,TabbedQuestionBrowser,template){
     
    8181        refresh: function() {
    8282            this.titleNode.innerHTML = this.survey.title || "(set title in properties)";
    83             this.propertiesForm.set('value',this.survey);
     83            this.propertiesDialog.set('value',this.survey);
    8484        },
    8585        _onShowProperties: function(evt) {
     
    8888        _onPropertiesOk: function(evt) {
    8989            this.propertiesDialog.hide();
    90             lang.mixin(this.survey, this.propertiesForm.get('value'));
     90            lang.mixin(this.survey, this.propertiesDialog.get('value'));
    9191            this.refresh();
    9292            event.stop(evt);
     
    9595        _onPropertiesCancel: function(evt) {
    9696            this.propertiesDialog.hide();
    97             this.propertiesForm.set('value',this.survey);
     97            this.propertiesDialog.reset('value',this.survey);
    9898            event.stop(evt);
    9999            return false;
Note: See TracChangeset for help on using the changeset viewer.