Ignore:
Timestamp:
09/03/12 13:37:01 (13 years ago)
Author:
hendrikvanantwerpen
Message:

Enable configuring multiple choice question items.

Allow widgets in ordered list by using mixin. Used this to create multiple
choice options. The options widget itself needs some styling.

Show code in question item preview and label to stop editing is 'Done'
to stop confusion about saving.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/rest-dojo-ui/client/rft/ui/QuestionEditorPreviewItem.js

    r399 r404  
    4747                    this.innerWidget.set('readOnly',true);
    4848                }
    49                 this.titleNode.innerHTML = this.item.type+" [preview]";
     49                this.titleNode.innerHTML = (this.item.code||"(no node)")+" : "+this.item.type+" [preview]";
    5050            },
    5151            _showEditWidget: function() {
     
    5656                    this.innerWidget.startup();
    5757                }
    58                 this.titleNode.innerHTML = this.item.type+" [editing]";
     58                this.titleNode.innerHTML = (this.item.code||"(no node)")+" : "+this.item.type+" [editing]";
    5959            },
    6060            onClose: function() {},
     
    8484                    this._showEditWidget();
    8585                    this.editButtonNode.iconNode.className = this.editButtonNode.iconNode.className.replace("rftIconEdit", "rftIconAccept");
    86                     this.editButtonNode.set("label", "Save");
     86                    this.editButtonNode.set("label", "Done");
    8787                }
    8888                this._editing = !this._editing;
Note: See TracChangeset for help on using the changeset viewer.