Changeset 493 for Dev/trunk/src/client/qed-client/pages/surveyRun.js
- Timestamp:
- 03/09/14 19:25:40 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/src/client/qed-client/pages/surveyRun.js
r492 r493 22 22 templateString: template, 23 23 classStore: surveyRuns, 24 _isValid: false, 24 25 startup: function() { 25 26 if ( this._started ) { return; } … … 30 31 _refresh: function() { 31 32 this.titleNode.innerHTML = this.object.title || ""; 32 this.surveySummaryWidget.set('value',this.object.survey );33 this.surveyRunWidget.set('value',this.object );33 this.surveySummaryWidget.set('value',this.object.survey,null); 34 this.surveyRunWidget.set('value',this.object,null); 34 35 this._refreshURL(); 35 36 this._loadResponses(); … … 96 97 }, 97 98 _updateObject: function() { 98 var valid = this.surveyRunWidget.validate();99 if ( valid ) {99 this._isValid = this.surveyRunWidget.validate(); 100 if ( this._isValid ) { 100 101 lang.mixin(this.object,this.surveyRunWidget.get('value')); 101 102 } 102 return valid;103 return this._isValid; 103 104 }, 104 105 _onSave: function(evt) { … … 122 123 }, 123 124 markDirty: function() { 124 this.saveBtn.set('disabled', false);125 this.saveAndCloseBtn.set('disabled', false);125 this.saveBtn.set('disabled',!this._isValid); 126 this.saveAndCloseBtn.set('disabled',!this._isValid); 126 127 this.discardBtn.set('label','Discard & Close'); 127 128 this.inherited(arguments);
Note: See TracChangeset
for help on using the changeset viewer.