Changeset 504
- Timestamp:
- 03/11/14 11:51:09 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/src/client/qed-client/model/widgets/QuestionEditorPreviewItem.js
r503 r504 39 39 }, 40 40 _handleDestroy: function(evt) { 41 if ( !( this.disabled || this.readOnly ) ) { 42 this.emit('destroy'); 43 } 41 this.emit('destroy'); 44 42 if ( evt ) { event.stop(evt); } 45 43 return false; … … 57 55 } else { 58 56 this._showViewWidget(); 57 } 58 }, 59 _setReadOnlyAttr: function() { 60 this.inherited(arguments); 61 this._updateRemoveBtn(); 62 }, 63 _setDisabledAttr: function() { 64 this.inherited(arguments); 65 this._updateRemoveBtn(); 66 }, 67 _updateRemoveBtn: function() { 68 if ( this.readOnly || this.disabled ) { 69 domClass.add(this.removeButton.domNode, 'dijitHidden'); 70 } else { 71 domClass.remove(this.removeButton.domNode, 'dijitHidden'); 59 72 } 60 73 },
Note: See TracChangeset
for help on using the changeset viewer.