Ignore:
Timestamp:
04/29/13 19:35:10 (12 years ago)
Author:
hendrikvanantwerpen
Message:

Big cleanup of the question content.

  • Replaced old list implementations with a new one that behaves like a form widget.
  • All question content is now in separate widgets, not in the factory itself.
  • Added form and widget validation for question editing.
Location:
Dev/trunk/client/qed/model/widgets/questions
Files:
1 added
1 moved

Legend:

Unmodified
Added
Removed
  • Dev/trunk/client/qed/model/widgets/questions/ScaleInputWidget.js

    r435 r441  
    11define([
    2     "dijit/_Container",
    3     "dijit/_TemplatedMixin",
    4     "dijit/_WidgetBase",
     2    "../../../widgets/_ComplexValueWidget",
    53    "dijit/form/RadioButton",
    6     "dijit/form/_FormMixin",
    74    "dojo/_base/array",
    85    "dojo/_base/declare",
     
    118    "dojo/dom-construct",
    129    "dojo/text!./templates/ScaleInputWidget.html"
    13 ], function(_Container, _TemplatedMixin, _WidgetBase, RadioButton, _FormMixin, array, declare, lang, domAttr, domConstruct, template) {
    14     return declare([_WidgetBase,_TemplatedMixin,_Container,_FormMixin],{
     10], function(_ComplexValueWidget, RadioButton, array, declare, lang, domAttr, domConstruct, template) {
     11    return declare([_ComplexValueWidget],{
    1512        templateString: template,
    1613        baseClass: "qedScaleWidget",
     
    4138                domConstruct.create("th", {
    4239                    innerHTML: i.toString()
    43                 }, this.minNode, "after");
     40                }, this.maxNode, "before");
    4441            }
    4542        },
     
    6966                    className: 'max'
    7067                }, tr);
    71                 if ( this.naLabel !== null ) {
     68                if ( this.naLabel !== null && this.naLabel !== "" ) {
    7269                    td = domConstruct.create("td", {}, tr);
    7370                    radio = new RadioButton({
Note: See TracChangeset for help on using the changeset viewer.