Changeset 494 for Dev/trunk/src/client/qed-client/pages/question.js
- Timestamp:
- 03/09/14 22:03:19 (11 years ago)
- Location:
- Dev/trunk/src/client/qed-client
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/src/client/qed-client
- Property svn:ignore
-
old new 1 1 2 ### begin grunt-svn-ignore managed ignores3 ### edits will be overwritten when grunt svn-ignore is run4 session.js5 ### end grunt-svn-ignore managed ignores
-
- Property svn:ignore
-
Dev/trunk/src/client/qed-client/pages/question.js
r493 r494 19 19 if ( this._started ) { return; } 20 20 this.inherited(arguments); 21 this. propertiesForm.on('change',lang.hitch(this,'_handlePropertiesChange'));22 this. contentList.on('change',lang.hitch(this,'_handleContentChange'));21 this.own(this.propertiesForm.on('change',lang.hitch(this,'_handlePropertiesChange'))); 22 this.own(this.contentList.on('change',lang.hitch(this,'_handleContentChange'))); 23 23 this._load(); 24 24 }, … … 40 40 _updateObject: function() { 41 41 var pValid = this.propertiesForm.validate(); 42 if ( pValid ) { 43 lang.mixin(this.object,this.propertiesForm.get('value')); 44 } 42 lang.mixin(this.object,this.propertiesForm.get('value')); 45 43 var cValid = this.contentList.validate(); 46 if ( cValid ) { 47 this.object.content = this.contentList.get('value'); 48 } 44 this.object.content = this.contentList.get('value'); 49 45 this._isValid = pValid && cValid; 50 46 return this._isValid;
Note: See TracChangeset
for help on using the changeset viewer.