Changeset 500 for Dev/trunk/src/client/qed-client/pages/survey.js
- Timestamp:
- 03/10/14 16:07:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/src/client/qed-client/pages/survey.js
r498 r500 61 61 this.questionList.startup(); 62 62 }, 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 } 69 68 this.titleNode.innerHTML = this.object.title || "(set title in properties)"; 70 69 }, … … 75 74 this.object.questions = this.questionList.get('value'); 76 75 this.markDirty(); 77 this._ internalRefresh();76 this._refresh(); 78 77 }, 79 78 _onShowProperties: function(evt) { … … 86 85 lang.mixin(this.object, this.propertiesForm.get('value').survey); 87 86 this.markDirty(); 88 this._ internalRefresh();87 this._refresh(); 89 88 if ( evt ) { event.stop(evt); } 90 89 return false;
Note: See TracChangeset
for help on using the changeset viewer.