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/surveyRun.js

    r494 r498  
    2626            if ( this._started ) { return; }
    2727            this.inherited(arguments);
    28             this.own(this.surveyRunWidget.on("change",lang.hitch(this,'_onPropChange')));
     28            this.own(this.surveyRunWidget.on("change",lang.hitch(this,'_handlePropChange')));
    2929            this._load();
    3030        },
    3131        _refresh: function() {
    32             this.titleNode.innerHTML = this.object.title || "";
    3332            this.surveySummaryWidget.set('value',this.object.survey,null);
    3433            this.surveyRunWidget.set('value',this.object,null);
    35             this._refreshURL();
     34            this._internalRefresh();
    3635            this._loadResponses();
    3736        },
    38         _refreshURL: function() {
     37        _internalRefresh: function() {
     38            this.titleNode.innerHTML = this.object.title || "";
    3939            if ( this.object.mode === "open" ) {
    4040                this.runURLNode.innerHTML =
     
    7474            }));
    7575        },
    76         _onPropChange: function(e) {
    77             if ( this._updateObject() ) {
    78                 this._refreshURL();
    79             }
     76        _handlePropChange: function(e) {
     77            this._updateObject();
    8078            this.markDirty();
     79            this._internalRefresh();
    8180        },
    8281        _buildGeneralURL: function(surveyRun) {
Note: See TracChangeset for help on using the changeset viewer.