Ignore:
Timestamp:
03/10/14 16:07:00 (11 years ago)
Author:
hendrikvanantwerpen
Message:
  • Indicate of refresh is due to load or due to save in _ObjectPage.
  • _ComplexValueMixin & ListWidget? catch all change events and drops them if still being created.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/src/client/qed-client/pages/survey.js

    r498 r500  
    6161            this.questionList.startup();
    6262        },
    63         _refresh: function() {
    64             this.propertiesForm.set('value',{survey:this.object},null);
    65             this.questionList.set('value',this.object.questions,null);
    66             this._internalRefresh();
    67         },
    68         _internalRefresh: function() {
     63        _refresh: function(initial) {
     64            if ( initial === true ) {
     65                this.propertiesForm.set('value',{survey:this.object},null);
     66                this.questionList.set('value',this.object.questions,null);
     67            }
    6968            this.titleNode.innerHTML = this.object.title || "(set title in properties)";
    7069        },
     
    7574            this.object.questions = this.questionList.get('value');
    7675            this.markDirty();
    77             this._internalRefresh();
     76            this._refresh();
    7877        },
    7978        _onShowProperties: function(evt) {
     
    8685            lang.mixin(this.object, this.propertiesForm.get('value').survey);
    8786            this.markDirty();
    88             this._internalRefresh();
     87            this._refresh();
    8988            if ( evt ) { event.stop(evt); }
    9089            return false;
Note: See TracChangeset for help on using the changeset viewer.