Changeset 500 for Dev/trunk/src/client/qed-client/model
- Timestamp:
- 03/10/14 16:07:00 (11 years ago)
- Location:
- Dev/trunk/src/client/qed-client/model/widgets
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/src/client/qed-client/model/widgets/QuestionEditorPreviewItem.js
r443 r500 1 1 define([ 2 "../../widgets/_ComplexValueWidget", 2 3 "./questions/Factory", 3 4 "dijit/_Container", … … 14 15 "dojo/on", 15 16 "dojo/text!./templates/QuestionEditorPreviewItem.html" 16 ], function( QuestionWidgetFactory, _Container, _TemplatedMixin, _WidgetBase, _WidgetsInTemplateMixin, declare, event, fx, lang, domClass, domGeom, domStyle, on, template) {17 return declare([_ WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin, _Container], {17 ], function(_ComplexValueWidget, QuestionWidgetFactory, _Container, _TemplatedMixin, _WidgetBase, _WidgetsInTemplateMixin, declare, event, fx, lang, domClass, domGeom, domStyle, on, template) { 18 return declare([_ComplexValueWidget], { 18 19 templateString: template, 19 20 baseClass: "qedQuestionEditorPreviewItem", … … 87 88 this._destroyInnerWidget(); 88 89 this.innerWidget = newWidget; 89 this.innerWidget.placeAt(this.containerNode); 90 this.innerWidget.startup(); 90 this.addChild(this.innerWidget); 91 91 this.innerWidget.set('readOnly',true); 92 92 this.titleNode.innerHTML = this.value.type+" [preview]"; … … 101 101 this._destroyInnerWidget(); 102 102 this.innerWidget = newWidget; 103 this.innerWidget.placeAt(this.containerNode); 104 this.innerWidget.startup(); 103 this.addChild(this.innerWidget); 105 104 this.titleNode.innerHTML = this.value.type+" [editing]"; 106 105 domClass.replace(this.editButton.iconNode, "rftIconAccept", "rftIconEdit"); … … 111 110 _destroyInnerWidget: function() { 112 111 if ( this.innerWidget !== null ) { 112 this.removeChild(this.innerWidget); 113 113 this.innerWidget.destroyRecursive(); 114 this.innerWidget = null; 114 115 } 115 116 }, -
Dev/trunk/src/client/qed-client/model/widgets/questions/MultipleChoiceInputWidget.js
r495 r500 32 32 _getValueAttr: function() { 33 33 var value = this.inherited(arguments); 34 if ( this.allowMultiple === true ) {34 /*if ( this.allowMultiple === true ) { 35 35 return value; 36 36 } else { 37 return value.choice .length > 0;38 } 37 return value.choice; //.length > 0; 38 }*/ 39 39 }, 40 40 _setValueAttr: function(value) { -
Dev/trunk/src/client/qed-client/model/widgets/templates/QuestionEditorPreviewItem.html
r443 r500 1 < div>1 <form> 2 2 <div class="topBorder inheritBgColor bg dojoDndHandle"> 3 3 <span class="title" data-dojo-attach-point="titleNode">Default title</span> … … 13 13 </div> 14 14 </div> 15 </ div>15 </form>
Note: See TracChangeset
for help on using the changeset viewer.