Ignore:
Timestamp:
03/10/14 11:49:29 (11 years ago)
Author:
hendrikvanantwerpen
Message:

Do limited refresh when change is local in the page.

File:
1 edited

Legend:

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

    r495 r498  
    6262        },
    6363        _refresh: function() {
    64             this.titleNode.innerHTML = this.object.title || "(set title in properties)";
    6564            this.propertiesForm.set('value',{survey:this.object},null);
    6665            this.questionList.set('value',this.object.questions,null);
     66            this._internalRefresh();
     67        },
     68        _internalRefresh: function() {
     69            this.titleNode.innerHTML = this.object.title || "(set title in properties)";
    6770        },
    6871        _includeQuestion: function(question) {
     
    7275            this.object.questions = this.questionList.get('value');
    7376            this.markDirty();
    74             this._refresh();
     77            this._internalRefresh();
    7578        },
    7679        _onShowProperties: function(evt) {
     
    8386            lang.mixin(this.object, this.propertiesForm.get('value').survey);
    8487            this.markDirty();
    85             this._refresh();
     88            this._internalRefresh();
    8689            if ( evt ) { event.stop(evt); }
    8790            return false;
Note: See TracChangeset for help on using the changeset viewer.