- Timestamp:
- 03/13/14 22:21:55 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/src/client/qed-client/model/widgets/QuestionEditorPreviewItem.js
r512 r513 44 44 return false; 45 45 }, 46 _getValueAttr: function( value) {46 _getValueAttr: function() { 47 47 if ( this._editing === true ) { 48 this.value =this.innerWidget.get('value');48 return this.innerWidget.get('value'); 49 49 } 50 50 return this.value; 51 51 }, 52 _setValueAttr: function(value ) {53 this. value = value;52 _setValueAttr: function(value,priorityChange) { 53 this._setValueInternal(value,priorityChange); 54 54 if ( this._editing === true ) { 55 55 this._showEditWidget(); … … 97 97 if ( this._editing === true ) { 98 98 if (!this.innerWidget.validate || this.innerWidget.validate() ) { 99 this. value = this.innerWidget.get('value');99 this._setValueInternal(this.innerWidget.get('value')); 100 100 this._showViewWidget(); 101 101 } … … 149 149 if ( this.innerWidget !== null ) { 150 150 if ( this._editing === true ) { 151 this.triggerOnChange(); 151 this._onChange(); 152 // how to force event on widget here? 152 153 } 153 154 this.removeChild(this.innerWidget);
Note: See TracChangeset
for help on using the changeset viewer.