Changeset 498 for Dev/trunk/src/client/qed-client/pages/surveyRun.js
- Timestamp:
- 03/10/14 11:49:29 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/src/client/qed-client/pages/surveyRun.js
r494 r498 26 26 if ( this._started ) { return; } 27 27 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'))); 29 29 this._load(); 30 30 }, 31 31 _refresh: function() { 32 this.titleNode.innerHTML = this.object.title || "";33 32 this.surveySummaryWidget.set('value',this.object.survey,null); 34 33 this.surveyRunWidget.set('value',this.object,null); 35 this._ refreshURL();34 this._internalRefresh(); 36 35 this._loadResponses(); 37 36 }, 38 _refreshURL: function() { 37 _internalRefresh: function() { 38 this.titleNode.innerHTML = this.object.title || ""; 39 39 if ( this.object.mode === "open" ) { 40 40 this.runURLNode.innerHTML = … … 74 74 })); 75 75 }, 76 _onPropChange: function(e) { 77 if ( this._updateObject() ) { 78 this._refreshURL(); 79 } 76 _handlePropChange: function(e) { 77 this._updateObject(); 80 78 this.markDirty(); 79 this._internalRefresh(); 81 80 }, 82 81 _buildGeneralURL: function(surveyRun) {
Note: See TracChangeset
for help on using the changeset viewer.