- Timestamp:
- 04/24/13 21:28:13 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/client/qed/model/widgets/QuestionEditorPreviewItem.js
r438 r439 27 27 if ( this._started ){ return; } 28 28 this.inherited(arguments); 29 this.own( on(this.foldButtonNode,'click',29 this.own(this.foldButton.on('click', 30 30 lang.hitch(this, 'onToggleFold'))); 31 this.own( on(this.removeButtonNode,'click',31 this.own(this.removeButton.on('click', 32 32 lang.hitch(this, 'onClose'))); 33 this.own( on(this.editButtonNode,'click',33 this.own(this.editButton.on('click', 34 34 lang.hitch(this, 'onToggleEdit'))); 35 35 if (this.value) { … … 76 76 } 77 77 this.titleNode.innerHTML = this.value.type+" [preview]"; 78 this.editButtonNode.iconNode.className = this.editButtonNode.iconNode.className.replace("rftIconAccept", "rftIconEdit");79 this.editButton Node.set("label", "Edit");78 domClass.replace(this.editButton.iconNode, "rftIconEdit", "rftIconAccept"); 79 this.editButton.set("label", "Edit"); 80 80 this._editing = false; 81 81 }, … … 88 88 } 89 89 this.titleNode.innerHTML = this.value.type+" [editing]"; 90 this.editButtonNode.iconNode.className = this.editButtonNode.iconNode.className.replace("rftIconEdit", "rftIconAccept");91 this.editButton Node.set("label", "Done");90 domClass.replace(this.editButton.iconNode, "rftIconAccept", "rftIconEdit"); 91 this.editButton.set("label", "Done"); 92 92 this._editing = true; 93 93 }, … … 112 112 }) 113 113 }).play(); 114 this.foldButtonNode.iconNode.className = this.foldButtonNode.iconNode.className.replace("rftIconHalfArrowUp", "rftIconHalfArrowDown");114 domClass.replace(this.foldButton.iconNode, "rftIconHalfArrowDown", "rftIconHalfArrowUp"); 115 115 } else { 116 116 this.animation = fx.animateProperty({ … … 125 125 }) 126 126 }).play(); 127 this.foldButtonNode.iconNode.className = this.foldButtonNode.iconNode.className.replace("rftIconHalfArrowDown", "rftIconHalfArrowUp");127 domClass.replace(this.foldButton.iconNode, "rftIconHalfArrowUp", "rftIconHalfArrowDown"); 128 128 } 129 129 }
Note: See TracChangeset
for help on using the changeset viewer.